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

Re: HOWTO enter Ctrl-S to BASH from console



On Mon, Oct 13, 2003 at 01:40:01PM -0400, Paul Smith wrote:
> %% csj <csj@zapo.net> writes:
> 
>   >> In order to search command history in BASH, I can use Ctrl-R
>   >> (reverse incremental search) but so far am unsuccessful in using
>   >> Ctrl-S (normal incremental search).
> 
> Your terminal is set for terminal flow control.  "Old" terminals allowed
> you to halt the output to the terminal with CTRL-S and restart it with
> CTRL-Q.  You can use stty to check this:

Yes I know :)  It is nice way to stop screen when I forgot to run
"script" or "screen".

>   $ stty -a
>     ...
>   eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
>     ...                   ^^         ^^
> 
> Then you can disable it:
> 
>   $ stty start undef susp undef

Thanks.   Is there any occasion where disabling these makes life easier?
I wonder whoever chose to use these good old sequences for any other
purpose other than XON/XOFF has no respect. 

> If that solves your problem, put that command in your .bash_profile or
> .bashrc or whatever.

Unfortunately not.  It seems ^S does not work as I reported to BTS
Bug#215377.

>   c> Why don't you try tcsh?
> 
> Ugh!
> 
>   http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/
> 
> Friends don't let friends use *csh!

LOL.

Osamu



Reply to: