Hacker News new | past | comments | ask | show | jobs | submit login

> 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.




It 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.)


This 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?


Wow I had no idea about this, thank you for chiming in!


I'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.


It 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.


Oh 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?


Some 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-...




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: