3 ms·
> Ctrl+S (which freezes your terminal and then you need to remember to press Ctrl+Q to unfreeze it What is this? Sorry in advance if it’s some basic Linux thin
by corytheboyd 2y ago
> Ctrl+S (which freezes your terminal and then you need to remember to press Ctrl+Q to unfreeze it
What is this? Sorry in advance if it’s some basic Linux thing. I do my development on macOS with iterm2.
- Alupis 2y agoIt seems its probably more of a shell thing, than a linux thing. I've never run into this as an issue before, but I would wager it's the "Save" muscle memory which unexpectedly causes this issue for some people.
- corytheboyd 2y agoOh yeah the save muscle memory is burned into me too, despite having save-on-blur enabled for the last decade. More wondering under what context ctrl-s is having an effect on shell, and what that effect actually is. Is it bg/fg shenanigans?
- Alupis 2y agoSome fine folks over on the Unix & Linux StackExchange seem to have offered an explanation to this question[1]. [1] https://unix.stackexchange.com/questions/137842/what-is-the-point-of-ctrl-s https://unix.stackexchange.com/questions/137842/what-is-the-...
- sfink 2y agoIt predates Linux by a lot. It's software flow control for ancient terminals and modems that couldn't keep up, so they'd use in-band ^S and ^Q characters to manage the input and output. rms also hated it, to the extent that he intentionally used Ctrl-S for the most basic search function of Emacs so that people would have to turn off the ^S/^Q crap throughout the path from the program to their terminal, or they wouldn't be able to use emacs. (Or at least so I've heard; I tried searching for confirmation but failed to find it.)
- Alupis 2y agoThis sounds like something rms would do, but also seems like a great way to turn people off to your text editor. If you haven't learned Emacs before, are you really going to put up with broken-by-design behavior?
- corytheboyd 2y agoWow I had no idea about this, thank you for chiming in!
- dontdieych 2y agoI've never used `ctrl+s` for control stdout flow. In fish shell, `ctrl+s` used to 'search in completion candidates list' - ls <tab><ctrl+s> - for search path/file names - ls -<tab><ctrl+s>` - for search in options Especially second one, it's quite handy most times than search through long man page.