Two kinds of terminal modes: termios and ANSI
I learned recently that the terminal has two different kinds of modes that can be set:
- “termios” modes, which
- are managed by the operating system
- you can view with
stty -a
- are set with the
ioctl
system call
- “ANSI” modes (not sure if this is the right name), which
- are managed by the terminal emulator
- you can’t normally view, except in GhostTTY’s inspector
- are set by sending ANSI escape codes (like
"\033[?25l"
for “make cursor invisible”)