Escape code | Use |
\x1b[2J | Clears the console |
\x1bn;mH or \x1bn;mf | Moves the cursor to row n, column m. The values are 1-based, and default to 1 (top left corner) if omitted |
\x1b?25l | Hides the cursor (Note: the last character is lowercase ‘L’) |
\x1b?25h | Shows the cursor. |
\x1b[;km | Where k is the colour (text colours are from 30 to 37 and background colours are from 40 to 47). For the colour codes, see Table 2. |
\x1b[5m | Blinks slowly |
\x1b[6m | Blinks rapidly |
sábado, 7 de novembro de 2015
Some important ANSI escape codes
Do artigo Write Your Own conio.h for GNU/Linux
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário