Under X, xmodmap <https://wiki.archlinux.org/index.php/Xmodmap> perhaps?
On Sun, May 20, 2018 at 6:17 PM, Klaus Ethgen <klaus+gen...@ethgen.de> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Hi, > > I have an annoying problem on gentoo that I work around currently by > using zkbd from zsh. > > Some keys on Gentoo, on xterm, console and via ssh from remote host, map > to wrong keycodes. Namely and most important, that are the keys for > begin, end and delete. They insert a tilde char instead of doing the > expected cursor movement. > > A correct table would show as following: > key[F1]='^[OP' > key[F2]='^[OQ' > key[F3]='^[OR' > key[F4]='^[OS' > key[F5]='^[[15~' > key[F6]='^[[17~' > key[F7]='^[[18~' > key[F8]='^[[19~' > key[F9]='^[[20~' > key[F10]='^[[21~' > key[F11]='^[[23~' > key[F12]='^[[24~' > key[Backspace]='^?' > key[Insert]='^[[2~' > key[Home]='^[[H' > key[PageUp]='^[[5~' > key[Delete]='^[[3~' > key[End]='^[[F' > key[PageDown]='^[[6~' > key[Up]='^[[A' > key[Left]='^[[D' > key[Down]='^[[B' > key[Right]='^[[C' > key[Menu]='''' > > Is there any way to fix that system wide in Gentoo? > > Regards > Klaus > - -- > Klaus Ethgen http://www.ethgen.ch/ > pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <kl...@ethgen.ch> > Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C > -----BEGIN PGP SIGNATURE----- > Comment: Charset: ISO-8859-1 > > iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlsBLy8ACgkQpnwKsYAZ > 9qx9QQwAw/8vCYNcjBJS4+Q6FcSAXg/Kx25DtcET7Q+GngwWJMafex0+ySD1p+za > O5zUo1auePNuziFL6U6+f3m+/z/uHonIoUZ3Fqk1I/0xzD3QUmUDouzv/RwhD5N8 > W5+wivRFF+UJ2nMSa+NG1APEi3W63iXc5zPuwddyqT2UgYTmwG3fzse25qc6QtZM > Heu31opWcCUMqBYYushL3yD18bYfUiav1boF0DYewOkpBTgQkzZl1WyDBvSd5pVz > tPle+v2dj8IbqHgT2ALOuvCOiH0troqb6b/SmV7lNapVgMCYoDhSFnPkhJ2k000g > ni+h8bQ5LNSq5eUI2hpafQoi5bQc3yzUCqz4IJ+2ZCNvjiHuL466XkXeel6BzKPV > 6w19aWbG8vvhJYQFmx+6PrysSNj4lhIegWp6e9os3/2gg07+TlIjR98erlGe/Llq > uHTNbIsQaUf53uA7pGRIKp/DKmdKpUk5+BO1q1jFjbHwvcIhkUs4asGJV7e026CY > eGiiZbFL > =U8fE > -----END PGP SIGNATURE----- > >