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

Re: HOWTO enter Ctrl-S to BASH from console



%% 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:

  $ stty -a
    ...
  eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
    ...                   ^^         ^^

Then you can disable it:

  $ stty start undef susp undef

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

  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!

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@nortelnetworks.com>   HASMAT--HA Software Mthds & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.



Reply to: