This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bash - bind Alt-Arrow keys


I want to bind \M-right and \M-left to forward-word
and backward-word respectively in bash.

I've tried the following in my .inputrc file:

# forward word
bind '"\M-\e[C":forward-word'

# backward word
bind '"\M-\e[D":backward-word'

It seems to work, but have some strange side affects. 
Specifically, the 'b' key no longer works.  

Any ideas?

Thanks.

Scott

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]