Preventing the Ctrl+S key combination from working

The shortcut keys you use for certain tools may be interpreted differently in the terminal which can cause issues.

A typical case is the Ctrl+S shortcut key which is used for saving in many Windows programs.


In most UNIX/Linux termianls, Ctrl+S works as a 'stop' signal and will cause the terminal to stop outputting characters.

This causes users to think they've been disconnected from the server and they attempt to connect again.

(If terminal output was stopped by Ctrl+S, you can send the 'start' signal, Ctrl+Q)



To disable the Ctrl+S key altogether, you have two options.


First, in Xshell, map Ctrl+S to send a string but don't actually specify any string.

Navigate to 'Tools - Options - Keyboard and Mouse - Key Mapping - Edit - New...' and set Ctrl+S to the 'Send String' Type. Leave the string blank and click OK.



The other method is to define the 'stop' action to a different key assignment instead of Ctrl+S.

In the terminal, the key values can by checked using the  'stty -a' command and be overridden using the 'stty' command.

stty stop ""

The command above will not assign any key to the 'stop' signal.


stty stop "^A"


The command above will assign Ctrl+A for the 'stop' signal.  ^A is a character that appears when pressing Ctrl+V, Ctrl+A in succession.

Depending on the system you can tie the Shift+6(^) and A characters together using ""