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

Re: HOWTO enter Ctrl-S to BASH from console


On Sun, Oct 12, 2003 at 01:08:04PM +0100, Colin Watson wrote:
> On Sun, Oct 12, 2003 at 01:59:31PM +0200, Osamu Aoki wrote:
> > Here is my somewhat OT question since this is not exactly Debian but
> > generic BASH question...
> > 
> > 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).
> You need to use stty to make 'stop' something other than ^S.

That's true.  Itried "stty raw".  Then I can get 
but it does not accept any key entry.

My another solution is to define ~/.inpurtc as:
M-s: forward-search-history
M-r: reverse-search-history

This makes Alt-R and original Ctrl-R to initiate reverse-search-history
but Alt-S initiate forward-search-history menu but it does not work:
is displayed after Alt-S in normal console but it does not accept any
key entry.

Looks like bug in READLINE.

(I guess nobody in same mind botherd Ctrl-S for incremental search.
 I was happy with Ctrl-R anyway ...)


Reply to: