[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: keystroke ctrl+s freezes terminal/console



"Joerg Johannes" <liste_joerg@gmx.de> writes:
> On Tuesday 15 July 2003 13:51, Rogier Wolff wrote:
>> On Tue, Jul 15, 2003 at 07:33:47AM -0400, Shawn Lamson wrote:
>> > Hey all -
>> >
>> > I have noticed that pressing ctrl+s in console or xterm suspends
>> > input... I have not figured out how to successfully get out of that
>> > situation.  Is there a graceful way?  What is the purpose of ctrl+s
>> > ( i believe I have the emacs style command line editor )?  How can
>> > I disable ctrl+s or alter it so that it does not freeze my
>> > console/xterm?
>>
>> Note that control-S doesn't suspend input. It suspends OUTPUT!
>> control-Q lets the output go again.
>
> As Roger already asked: Is there a way to disable this Ctrl-S shortcut?

Ctrl+S/Ctrl+Q is actually the XON/XOFF protocol. If you've been around
long enough you'll be familiar with that. It was used a lot for slow
terminals and for slow modems. You can disable it in most terminal
types using stty. For example:

            stty -ixon

will disable Ctrl+S. See "man stty" for more details on XON/XOFF.

Gary



Reply to: