The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ctrl-M at end of each line navi Shell Programming and Scripting 3 06-04-2008 12:09 AM
Catching ctrl-C or ctrl-D sendhilmani123 Shell Programming and Scripting 2 05-02-2006 02:02 PM
search and replace by bash Euler04 Shell Programming and Scripting 2 07-23-2005 05:51 PM
Disable ctrl-c,ctrl-d,ctrl-d in ksh script wtofu AIX 6 06-29-2005 01:41 PM
Script ctrl+c newtounix UNIX for Dummies Questions & Answers 1 03-19-2001 01:23 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2008
Registered User
 

Join Date: May 2008
Posts: 2
Question ctrl+S resulting in (i-search) in bash

Hi

On solaris, when I press Ctrl+S on an XTERM, the window normally freezes. But today on the same machine, the Ctrl+S key results in (i-search) !! I understand that it has got something to do with emacs (may be not). But I do not use emacs at all. Other specific keys including <backspace>, <Ctlr+Q> also perform other-than-usual actions !!. Can someone help?

Balaji
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-09-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,419
what does stty show?

login to a fresh session, then compare stty there to the old stty output.
Reply With Quote
  #3 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: May 2008
Posts: 2
Quote:
Originally Posted by jim mcnamara View Post
what does stty show?

login to a fresh session, then compare stty there to the old stty output.
The stty shows this

stty -a
speed 9600 baud;
rows = 24; columns = 80; ypixels = 316; xpixels = 499;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^?; kill = ^u;
eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
parenb -parodd cs7 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
-ixon ixany -ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh
-tostop echoctl -echoprt -echoke -defecho -flusho -pendin iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel



I just noticed that just a change of shell from csh to bash caused this problem. But the stty o/p obviously is the same in bash and csh. Is something wrong?
Reply With Quote
  #4 (permalink)  
Old 05-13-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,707
bash uses different keybindings than csh. The bash manual is rather hefty but there is a long section about how to bind, unbind, and rebind keys. Try simply the command "bind -r '\C-s'" to remove the problematic binding. (Incremental search is originally an Emacs feature, yes, but it also exists in e.g. Firefox these days. It simply means that the search results are refined as you type in more input, like e.g. many Ajax web sites work these days.)

Last edited by era; 05-13-2008 at 02:06 AM. Reason: Compare with "ajaxy search"
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0