Re: HOWTO enter Ctrl-S to BASH from console

From: Paul Smith (pausmith_at_nortelnetworks.com)
Date: 10/13/03

  • Next message: Alex Malinovich: "Re: vmware with win2k as the guest os"
    To: debian-user@lists.debian.org
    Date: 13 Oct 2003 13:40:01 -0400
    
    

    %% 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.
    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Alex Malinovich: "Re: vmware with win2k as the guest os"

    Relevant Pages

    • Re: RH9.0 Terminal colors
      ... I've never achieved a change in the 'size' of the text console (i.e. ... Speaking of terminals, is there a command ... >> Tom Klem ... > 'man stty' for more info. ...
      (RedHat)
    • Re: recent xterm/terminal(?) change (control-C) shows ^C?
      ... Recently, after an apt-get dist-upgrade, when I hit control-c, I get ... be you can set it with stty. ... terminals very often! ... how do you make this change permanent? ...
      (Debian-User)
    • Re: Stty question
      ... POSIX compliance might be. ... stty -a returns in part: ... POSIX stty does not define options to alter these settings. ... So, are we talking hardware terminals, software terminals, or xterms? ...
      (comp.os.linux.misc)
    • Re: Stty question
      ... POSIX compliance might be. ... stty -a returns in part: ... POSIX stty does not define options to alter these settings. ... So, are we talking hardware terminals, software terminals, or xterms? ...
      (comp.os.linux.misc)
    • Re: {NPP} 0.5.0-WIP4 (Linux): Ctrl-Q doesnt work
      ... keystrokes for terminal control Unless you ... I use angband terminals, but at least I still use ascii mode! ... stty can be used to set the control characters individually. ...
      (rec.games.roguelike.angband)