copying and pasting in rxvt
Randall R Schulz
rrschulz@cris.com
Mon Mar 18 09:15:00 GMT 2002
Jorg,
Here's what I did: I used "od -c" to determine what are the actual
sequences generated by the keys I cared to map and then wrote a .inputrc
file based on that.
Here's a hint, RXVT and the Windows console do not agree fully on key
mappings (nor are the completely distinct).
Here's the ".inputrc" file I use. It works both with RXVT and the Windows
console:
-==--==--==--==--==--==--==--==-
# set completion-ignore-case on
# Console:
# F1 - F5
"\M-[[A" "fg %1\C-M"
"\M-[[B" "fg %2\C-M"
"\M-[[C" "fg %3\C-M"
"\M-[[D" "fg %4\C-M"
"\M-[[E" "fg %5\C-M"
# RXVT:
# F1 - F4
"\M-[11~" "fg %1\C-M"
"\M-[12~" "fg %2\C-M"
"\M-[13~" "fg %3\C-M"
"\M-[14~" "fg %4\C-M"
"\M-[15~" "fg %5\C-M"
# Both Console and RXVT:
# F6 - F12
"\M-[17~" "fg %6\C-M"
"\M-[18~" "fg %7\C-M"
"\M-[19~" "fg %8\C-M"
"\M-[20~" "fg %9\C-M"
"\M-[21~" "fg %10\C-M"
"\M-[23~" "fg %11\C-M"
"\M-[24~" "fg %-\C-M"
# Console:
"\M-[1~": beginning-of-line # Home
"\M-[4~": end-of-line # End
# RXVT:
"\M-[7~": beginning-of-line # Home
"\M-[8~": end-of-line # End
# Both Console and RXVT:
"\M-[2~": paste-from-clipboard # Insert
# "\M-[5~" # Page-Up
"\M-[3~": delete-char # Delete
# "\M-[6~" # Page-Down
-==--==--==--==--==--==--==--==-
The attachment is the same file in Unix EOL format with tabs intact. The
tabs are meant to be set at four-column intervals.
I suppose most people will find my use of the Fn keys unimaginative, but at
least you now know what sequences they generate on each emulator.
Randall Schulz
Mountain View, CA USA
At 08:19 2002-03-18, =?ISO-8859-15?Q?=22Schaible=2C_J=F6rg=22?= wrote:
>Hi Gerrit,
>
> ># Make Home work
> >"\e[7~": beginning-of-line
> ># Make End work
> >"\e[8~": end-of-line
> ># Make Delete work
> >"\e[3~": delete-char
> ># make Insert work
> >"\e[2~": paste-from-clipboard
>
>is there any documentation for the key mappings ? I tried without success
>to bind something to ALT+CurUp or ALT+CurDown. Even more, is there any way
>identifying the keys of the number block?
>
>Regards,
>Jörg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .inputrc
Type: application/octet-stream
Size: 804 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020318/ca85b10e/attachment.obj>
-------------- next part --------------
--
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