News for hackers. Stuff that matters.
Re:micro – A Modern Alternative to nano by mdaniel on Friday August 18, 2023 @11:01AM (#37176629)
> Ctrl-S for saving ... Ctrl+Q to exit

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

Re:micro – A Modern Alternative to nano by rollcat on Friday August 18, 2023 @11:35AM (#37177066)
It conveniently translates to "save and exit"!

Hopefully a cautionary tale against careless in-band signalling.

Re:micro – A Modern Alternative to nano by mardifoufs on Friday August 18, 2023 @04:40PM (#37181797)
Wait I don't understand the issue. What are you referring to?
Re:micro – A Modern Alternative to nano by kip_ on Friday August 18, 2023 @05:28PM (#37182375)
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. :)

Re:micro – A Modern Alternative to nano by mdaniel on Friday August 18, 2023 @09:10PM (#37184368)
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
Re:micro – A Modern Alternative to nano by mdaniel on Friday August 18, 2023 @09:12PM (#37184377)
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...
Re:micro – A Modern Alternative to nano by musicale on Friday August 18, 2023 @09:06PM (#37184334)
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.

Re:micro – A Modern Alternative to nano by gilcot on Saturday August 19, 2023 @02:23PM (#37191595)
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…