<br><br><div class="gmail_quote">On Thu, Dec 11, 2008 at 7:19 PM, Björn Gustafsson <span dir="ltr"><<a href="mailto:bg-ale@bjorng.net">bg-ale@bjorng.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The 'stty' command controls the terminal's start/stop characters as<br>
well as other things like interrupt (^C) and suspend (^Z). You can<br>
both view the current settings and change them using stty.<br>
<br>
# Show the current terminal settings<br>
<br>
stty -a<br>
<br>
# Change the stop character from ^S to ^R<br>
<br>
stty stop '^r'<br>
<br>
# Undefine the stop character. note the two single-quotes:<br>
<br>
stty stop ''</blockquote><div><br>This is some neat stuff Björn. I was going to just to be more mindful but this might have to go in the environment file anyway. :)<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
2008/12/11 J. D. <<a href="mailto:jdonline@gmail.com">jdonline@gmail.com</a>>:<br>
<div><div></div><div class="Wj3C7c">><br>
><br>
> 2008/12/11 Michael B. Trausch <<a href="mailto:mike@trausch.us">mike@trausch.us</a>><br>
>><br>
>> On Thu, 11 Dec 2008 18:07:36 -0500<br>
>> "J. D." <<a href="mailto:jdonline@gmail.com">jdonline@gmail.com</a>> wrote:<br>
>><br>
>> > There are some curious key combinations in bash I was wondering about.<br>
>> > Pressing ctrl-s seems to freeze the terminal but silently it appears<br>
>> > to still be accepting input. Pressing ctrl-q breaks this behavior and<br>
>> > everything returns to normal. Does anyone use this? I'm sure it has<br>
>> > caused people trouble thinking their terminal is locked. I have only<br>
>> > used ctrl-q from to regain my terminal after accidentally hitting<br>
>> > ctrl-s. :)<br>
>> ><br>
>> > Also having scrolllock enabled on from switching computers on a kvm<br>
>> > creates the illusion of a lockup since the terminal is in a scrolling<br>
>> > mode.<br>
>><br>
>> This is a historical feature of terminals, known as soft flow control.<br>
>> One would often use it on a very slow serial terminal connection to<br>
>> perform manual pagination of sorts.<br>
><br>
> I see. That makes sense. I guess we use pagers for that now.<br>
><br>
>><br>
>> Some software that runs in the terminal (such as Emacs) overrides that<br>
>> behavior, since Emacs uses both C-s and C-q key combinations. I am<br>
>> relatively certain that means that there is a way to disable it<br>
>> generally, but it's never been a problem for me so I don't know what<br>
>> the process for that would be.<br>
>><br>
>><br>
><br>
> Thanks for the suggestion. I use ctrl-d quite a bit and occasionally it<br>
> becomes<br>
> ctrl-s due to typo. Great presentation on DR by the way. I just read over<br>
> it. Thanks<br>
> for the link.<br>
><br>
>><br>
>> --- Mike<br>
>><br>
>> --<br>
>> My sigfile ran away and is on hiatus.<br>
>> <a href="http://www.trausch.us/" target="_blank">http://www.trausch.us/</a><br>
>><br>
>> _______________________________________________<br>
>> Ale mailing list<br>
>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<font color="#888888">Björn Gustafsson<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
</div></div></blockquote></div><br>