How Terminals Work

33 points by mgm


jclulow

Sections 5 & 6 are not quite right, FWIW. Input processing and signal generation does not occur in the terminal, but in the line discipline within a UNIX operating system. A terminal could be attached to, say, a serial line of a random piece of equipment or a TCP socket of some user process, and none of what we perceive as classical input processing and signal sending would occur -- but everything else described in the document about modes and escape sequences and so on still would.

juliethefoxcoon

I have a question. If the things I type aren't sent to my shell until I hit "enter", then how do zsh plugins like https://github.com/zsh-users/zsh-autosuggestions and https://github.com/zsh-users/zsh-syntax-highlighting work? These all do things before I hit enter and as far as I know are completely implemented through the shell.