“I do recall Emacs ^S and ^Q being problematic due to terminal mode occasionally getting set badly (and then the underlying hardware would wake up, “Oh, flow control! I know how to do that!”, ^S would freeze everything and you had to Just Know to do ^Q…)”
@wrog this is still a problem in modern terminal emulators. On Linux, nearly all terminal emulator software emulates the DEC VT-220 hardware pretty closely, so it does actually send the ASCII DC1 and DC3 characters for C-q and C-s, and the virtual TTY device responds accordingly by blocking all further characters except for DC1 and DC3. You have to execute the command stty -ixon to disable soft flow control for a given TTY device after it has been initialized by the operating system.
I think there is a way configure the pseudoterminal manager system control to create virtual TTY devices that ignore DC1 and DC3 characters, but I don’t know how, and for whatever reason (probably for backward compatibility with older Unix systems) Debian-based Linux doesn’t configure it this way by default. I think most people just put the stty -ixon in their ~/.profile file.
@kentpitman @dougmerritt @screwlisp @cdegroot
#tech #software #Linux #TerminalEmulator #CLI #LinuxTips