Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Ctrl-S for saving ... Ctrl+Q to exit

Using a flow control sequences for editor commands; what can go wrong?



I imagine avoiding control key sequences is part of the reason why Apple added the apple/command key to their keyboards. Makes it easy to copy text in a terminal emulator, etc.!

Whenever I use Windows my fingers are surprised to remember that the windows key isn't used for menu commands.


I've been told that IBM and Microsoft though that sending application commands with dedicated key sequences wouldn't be useful. Function keys should suffice (so I think Midnight/Total Commander interfaces are the right one to expect) but later IBM came with CUDA…


It conveniently translates to "save and exit"!

Hopefully a cautionary tale against careless in-band signalling.


Wait I don't understand the issue. What are you referring to?


Some of us graybeards use to use teletypes to talk to our computers. In one of the earlier races between differing I/O, the printer couldn't print as fast as the teletype was receiving data, so the teletype would send XOFF (Ctrl-S) to tell the remote end "Stop sending data and let me catch up" and would then send XON (Ctrl-Q) to say "I'm caught up, go back to sending data.

Many of us carried that to our VT100 terminals and used it when lines of code or output would flood the screen faster than we could read.

Eventually paginators like 'more' and 'less' were invented and flow control via the keyboard codes for XON/XOFF fell out of favor, but some of us have very strong muscle memory. :)


A fine answer, but my life experience is that it's not just "muscle memory," I am showing that xon and xoff still work inside both Terminal.app and iTerm2 (echo $TERM shows "xterm-256color") so maybe there's some legacy stuff configured in them or something, but I'm just saying that I struggle to think of who the audience is that would be running micro but not via a virtual terminal library that implements flow control


While I was double checking my memory about ctrl-s and ctrl-q, this link came up in my search results which may interest you, also: https://retrocomputing.stackexchange.com/questions/7263/hist...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: