The Computer Oracle

Can you disable the Ctrl-S (XOFF) keystroke in Putty?

-------------------------------------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Flying Over Ancient Lands

--

Chapters
00:00 Question
00:35 Accepted answer (Score 36)
00:53 Answer 2 (Score 34)
02:06 Answer 3 (Score 4)
03:26 Answer 4 (Score 4)
03:40 Thank you

--

Full question
https://superuser.com/questions/124845/c...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#ssh #terminal #putty

#avk47



ACCEPTED ANSWER

Score 36


Don't know about Putty, but you can use:

stty -ixon

on remote host, to disable START/STOP signals.




ANSWER 2

Score 34


The PuTTY solution:

  1. before creating the session go navigate to Connection->SSH->TTY in the list.
  2. in the "Mode" dropdown box, select IXON (nb: as of version 0.60, this list is not alphabetically ordered)
  3. put "0" (zero) as the value of IXON.

Screenshot

Works as a charm, even if you open up a "GNU screen" on top of it, SSH to another host, or "su" to another user

If you're using GNU Bash, ctrl-S should allow you now to do a forward-search-history (aka: i-search)

You can see the difference in the output of "stty -a | grep -o ".ixon": With putty configured it prints "-ixon", without " ixon"




ANSWER 3

Score 4


.bashrc example:
#
# Stop Putty from doing XOFF/XON with Ctrl-S/Ctrl-Q
# SOURCE: http://raamdev.com/recovering-from-ctrls-in-putty (Morgy, 7/14/08)
#
# stty ixany
# stty ixoff -ixon
### If needing to listen to Ctrl-S for some apps, use these two instead:
stty stop undef
stty start undef



ANSWER 4

Score 3


Open your .bash_profile and put:

stty -ixon

The value -xion doen't work for me. You can see the man entry: man stty.