[prev in list] [next in list] [prev in thread] [next in thread]
List: konsole-devel
Subject: Re: [Konsole-devel] Bug#17944: bug does still exist... :-(
From: Achim Bohnet <ach () mpe ! mpg ! de>
Date: 2001-10-24 12:24:58
[Download RAW message or body]
On Wednesday 24 October 2001 08:34, Gunter Ohrner wrote:
> Hi!
>
> This bug does still appear with KDE 2.2.1post and XFree 4.1.0 at Linux IA32.
This bug will be there as long as konsole cheats via defining TERM=xterm
without using the ESC sequences listed in terminfo/termcap datebases :(
Try echo $TERM; cat<return> and then press Home/End in a xterm and a linux
virtual console. You'll see ^[[H^[[F and ^[[1~^[[4~ , respectively. Now
try in konsole.
> Seems to be a problem with default.keytab but how can I find the information
> neccessary to fix it myself?
One fix is to use a xterm keytab file (appended) that does what
the name promises ;).
Achim
> # [xterm.keytab] Konsole Keyboard Table like xterm in XFree86 V4.1
# "Achim Bohnet" ach@mpe.mpg.de
#
# Note: xterm adds '2', '3' and '4' to an escape sequence for
# Shift, Alt and Shift+Alt modifiers, respectively. For
# now I've only defined Shift modifiers
#
################# IMPORTANT NOTICE #############################
# the key bindings (Kcontrol -> look and feel -> keybindings)
# overrule the settings in this file. The key bindings might be
# changed by the user WITHOUT notification of the maintainer of
# the keytab file. Konsole will not work as expected by
# the maintainer of the keytab file.
################################################################
#
# --------------------------------------------------------------
keyboard "xterm (XFree86 4.1)"
# TODO: TERM value and emitted ESC sequences are tidly coupled.
# So right place(TM) to define TERM is here
#term=xterm
# --------------------------------------------------------------
key Escape : "\E"
key Tab -Shift : "\t"
key Tab +Shift+Ansi : "\E[Z"
key Tab +Shift-Ansi : "\t"
key Return-Shift-Alt-NewLine : "\r"
key Return-Shift-Alt+NewLine : "\r\n"
key Return-Shift+Alt-NewLine : "\E\r"
key Return-Shift+Alt+NewLine : "\E\r\n"
# VTXXX docs:
# key Enter-Ansi : "\E?M"
# key Enter+Ansi : "\EOM"
key Return+Shift : "\EOM"
# Backspace and Delete codes are preserving CTRL-H (see also Debian-Policy).
key Backspace : "\x7f"
# if you like ^H act like backspace. Use on your own risk ;)
#key H +Control : "\x7f"
# http://bugs.kde.org/db/19/19302.html
# gnome-terminal send as may ^H as there are chars and a final ^[[K
# simulating something like werase ^W (trick does not work with set -o vi)
# key Backspace-Alt : "\x7f"
# Arrow keys in VT52 mode
key Up -Shift-Ansi : "\EA"
key Down -Shift-Ansi : "\EB"
key Right-Shift-Ansi : "\EC"
key Left -Shift-Ansi : "\ED"
# Arrow keys in ANSI mode with Application - and Normal Cursor Mode)
key Up -Shift+Ansi+AppCuKeys : "\EOA"
key Down -Shift+Ansi+AppCuKeys : "\EOB"
key Right-Shift+Ansi+AppCuKeys : "\EOC"
key Left -Shift+Ansi+AppCuKeys : "\EOD"
key Up -Shift+Ansi-AppCuKeys : "\E[A"
key Down -Shift+Ansi-AppCuKeys : "\E[B"
key Right-Shift+Ansi-AppCuKeys : "\E[C"
key Left -Shift+Ansi-AppCuKeys : "\E[D"
# Arrow keys + Shift are used by konsole ifself
key Up +Shift : scrollLineUp
key Down +Shift : scrollLineDown
key Right +Shift : nextSession
key Left +Shift : prevSession
key N +Control+Alt : newSession
# Function keys w/o Shift modifier
key F1 -Shift : "\EOP"
key F2 -Shift : "\EOQ"
key F3 -Shift : "\EOR"
key F4 -Shift : "\EOS"
key F5 -Shift : "\E[15~"
key F6 -Shift : "\E[17~"
key F7 -Shift : "\E[18~"
key F8 -Shift : "\E[19~"
key F9 -Shift : "\E[20~"
key F10-Shift : "\E[21~"
key F11-Shift : "\E[23~"
key F12-Shift : "\E[24~"
key F1 +Shift : "\EO2P"
key F2 +Shift : "\EO2Q"
key F3 +Shift : "\EO2R"
key F4 +Shift : "\EO2S"
key F5 +Shift : "\E[15;2~"
key F6 +Shift : "\E[17;2~"
key F7 +Shift : "\E[18;2~"
key F8 +Shift : "\E[19;2~"
key F9 +Shift : "\E[20;2~"
key F10+Shift : "\E[21;2~"
key F11+Shift : "\E[23;2~"
key F12+Shift : "\E[24;2~"
# KDE 3
key ScrollLock : scrollLock
key Home -Shift-AppCuKeys : "\E[H"
key End -Shift-AppCuKeys : "\E[F"
key Home +Shift-AppCuKeys : "\E[2H"
key End +Shift-AppCuKeys : "\E[2F"
key Home -Shift+AppCuKeys : "\EOH"
key End -Shift+AppCuKeys : "\EOF"
key Home +Shift+AppCuKeys : "\EO2H"
key End +Shift+AppCuKeys : "\EO2F"
key Insert-Shift : "\E[2~"
key Delete-Shift : "\E[3~"
key Prior -Shift : "\E[5~"
key Next -Shift : "\E[6~"
key Insert+Shift : emitSelection
key Delete+Shift : "\E[3;2~"
key Prior +Shift : scrollPageUp
key Next +Shift : scrollPageDown
#----------------------------------------------------------
# Keypad-Enter
key Enter+NewLine : "\r\n"
key Enter-NewLine : "\r"
# other keypad characters as offered by Qt
# cannot be recognized as such.
#----------------------------------------------------------
key Space +Control : "\x00"
#__END__ xterm.keytab
> Greetinx,
>
> Gunter Ohrner
--
To me vi is Zen. To use vi is to practice zen. Every command is
a koan. Profound to the user, unintelligible to the uninitiated.
You discover truth everytime you use it.
-- reddy@lion.austin.ibm.com
_______________________________________________
konsole-devel mailing list
konsole-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/konsole-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic