Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 552 Bytes

ansi.md

File metadata and controls

39 lines (29 loc) · 552 Bytes
title layout
Ansi codes
default

Format

\033[#m

Where:

0      clear
1      bold
4      underline
5      blink

30-37  fg color
40-47  bg color

1K     clear line (to beginning of line)
2K     clear line (entire line)
2J     clear screen
0;0H   move cursor to 0;0

Colors

0      black
1      red
2      green
3      yellow
4      blue
5      magenta
6      cyan
7      white

Stuff

hide_cursor() { printf "\e[?25l"; }
show_cursor() { printf "\e[?25h"; }