remapping Cygwin 'bash' readline functions to PC keys

Randall R Schulz rrschulz@cris.com
Fri Feb 21 17:06:00 GMT 2003


Hi,

Jeez, guys, what's the problem:

% od -c
[ Press F1 through F12 followed by two CTRL-Ds: ]

0000000 033   [   [   A 033   [   [   B 033   [   [   C 033   [   [   D
0000020 033   [   [   E 033   [   1   7   ~ 033   [   1   8   ~ 033   [
0000040   1   9   ~ 033   [   2   0   ~ 033   [   2   1   ~ 033   [   2
0000060   3   ~ 033   [   2   4   ~
0000067


% od -c
[ Press Insert, Home, Page Up, Delete, End, Page Down followed by two 
CTRL-Ds: ]

0000000 033   [   2   ~ 033   [   1   ~ 033   [   5   ~ 033   [   3   ~
0000020 033   [   4   ~ 033   [   6   ~
0000030


Randall Schulz


At 03:42 2003-02-21, Markus Schönhaber wrote:

>'od -c' remains a mystery to me too - I guess I'll understand how that 
>command works sometime later this century.
>But since I too am strongly interested in putting the Ctrl-<Arrow> 
>keys into buisiness (as previos-word, next-word), I tried the Ctrl-V 
>trick. It worked - thanks to John from me too. This is what I got:
>plain left: ^[[D
>shift-left: ^[[d
>ctrl-left: ^[Od (it's a capital "O" contained in there - not the number zero)
>
>So I added these lines to my .inputrc to get the wordwise movement 
>using Ctrl-<arrow>:
>"\eOd": backward-word
>"\eOc": forward-word
>
>All the way long I have been talking about rxvt, of course.
>
>Regards
>   mks


--
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/



More information about the Cygwin mailing list