summaryrefslogtreecommitdiff
path: root/doc/terminal.txt
blob: ebdc89896a39e59dad9cd43391defbb3d4cb99a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
The virtual terminals support some ANSI escape sequences.

By default, the keyboard input is NOT echoed to the screen.
Keyboard echoing can be enabled by sending 0x1b[e and disabled by sending 0x1b[h.

When keyboard echo is enabled:
- what is written to keyboard is echoed ONLY IF A PROCESS IS CURRENTLY READING THE INPUT
- escape sequences are ignored (arrows, commands, etc.)
- backspaces are taken into account, so that they don't need post-processing
- read returns when a newline is read from keyboard
When keyboard echo is disabled:
- what is written to keyboard is NEVER ECHOED
- read returns after each keystroke (can also be an escape sequence)
Default is keyboard echo disabled.