About
An escape sequence is a sequence of characters that is interpreted by the terminal as a command.
Example:
- change the text color
- move the cursor
- …
They change the state of computers and their attached peripheral devices.
They are also known as control sequences, reflecting their use in device control.
Console escape and control sequences for the Linux terminal can be found:
- in the man page: console_codes
- or wikipedia wiki/escape sequence
Example
- Cursor: Move the cursor up 1
ESC[1A
- Cursor: Move the cursor back 1000
ESC[1000D
Library
- Java: Jansi