The Computer Oracle

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

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Life in a Drop

--

Chapters
00:00 Can You Disable The Ctrl-S (Xoff) Keystroke In Putty?
00:28 Accepted Answer Score 36
00:41 Answer 2 Score 3
00:54 Answer 3 Score 34
01:36 Answer 4 Score 4
01:45 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.