Mail Archives: cygwin/2002/03/18/11:43:55
--=====================_39526000==_
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Content-Transfer-Encoding: quoted-printable
Jorg,
Here's what I did: I used "od -c" to determine what are the actual=20
sequences generated by the keys I cared to map and then wrote a .inputrc=20
file based on that.
Here's a hint, RXVT and the Windows console do not agree fully on key=20
mappings (nor are the completely distinct).
Here's the ".inputrc" file I use. It works both with RXVT and the Windows=20
console:
-=3D=3D--=3D=3D--=3D=3D--=3D=3D--=3D=3D--=3D=3D--=3D=3D--=3D=3D-
# 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
-=3D=3D--=3D=3D--=3D=3D--=3D=3D--=3D=3D--=3D=3D--=3D=3D--=3D=3D-
The attachment is the same file in Unix EOL format with tabs intact. The=20
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=
=20
least you now know what sequences they generate on each emulator.
Randall Schulz
Mountain View, CA USA
At 08:19 2002-03-18, =3D?ISO-8859-15?Q?=3D22Schaible=3D2C_J=3DF6rg=3D22?=3D=
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=
=20
>to bind something to ALT+CurUp or ALT+CurDown. Even more, is there any way=
=20
>identifying the keys of the number block?
>
>Regards,
>J=F6rg
--=====================_39526000==_
Content-Type: application/octet-stream; name=".inputrc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=".inputrc"
IyBzZXQgY29tcGxldGlvbi1pZ25vcmUtY2FzZSBvbgoKCiMgQ29uc29sZToKIwlGMSAtIEY1CiJc
TS1bW0EiCSJmZyAlMVxDLU0iCiJcTS1bW0IiCSJmZyAlMlxDLU0iCiJcTS1bW0MiCSJmZyAlM1xD
LU0iCiJcTS1bW0QiCSJmZyAlNFxDLU0iCiJcTS1bW0UiCSJmZyAlNVxDLU0iCgoKIyBSWFZUOgoj
CUYxIC0gRjQKIlxNLVsxMX4iCSJmZyAlMVxDLU0iCiJcTS1bMTJ+IgkiZmcgJTJcQy1NIgoiXE0t
WzEzfiIJImZnICUzXEMtTSIKIlxNLVsxNH4iCSJmZyAlNFxDLU0iCiJcTS1bMTV+IgkiZmcgJTVc
Qy1NIgoKCiMgQm90aCBDb25zb2xlIGFuZCBSWFZUOgojCUY2IC0gRjEyCiJcTS1bMTd+IgkiZmcg
JTZcQy1NIgoiXE0tWzE4fiIJImZnICU3XEMtTSIKIlxNLVsxOX4iCSJmZyAlOFxDLU0iCiJcTS1b
MjB+IgkiZmcgJTlcQy1NIgoiXE0tWzIxfiIJImZnICUxMFxDLU0iCiJcTS1bMjN+IgkiZmcgJTEx
XEMtTSIKIlxNLVsyNH4iCSJmZyAlLVxDLU0iCgoKIyBDb25zb2xlOgoJIlxNLVsxfiI6CWJlZ2lu
bmluZy1vZi1saW5lCQkjIEhvbWUKCSJcTS1bNH4iOgllbmQtb2YtbGluZQkJCQkjIEVuZAoKCiMg
UlhWVDoKCSJcTS1bN34iOgliZWdpbm5pbmctb2YtbGluZQkJIyBIb21lCgkiXE0tWzh+IjoJZW5k
LW9mLWxpbmUJCQkJIyBFbmQKCgojIEJvdGggQ29uc29sZSBhbmQgUlhWVDoKCSJcTS1bMn4iOglw
YXN0ZS1mcm9tLWNsaXBib2FyZAkjIEluc2VydAojCSJcTS1bNX4iCQkJCQkJCSMgUGFnZS1VcAoJ
IlxNLVszfiI6CWRlbGV0ZS1jaGFyCQkJCSMgRGVsZXRlCiMJIlxNLVs2fiIJCQkJCQkJIyBQYWdl
LURvd24K
--=====================_39526000==_
Content-Type: text/plain; charset=us-ascii
--
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/
--=====================_39526000==_--
- Raw text -