source: ogBrowser-Git/qtermwidget/lib/kb-layouts/historic/vt100.keytab @ 9004d96

jenkinsmain
Last change on this file since 9004d96 was 64efc22, checked in by Vadim Troshchinskiy <vtroshchinskiy@…>, 19 months ago

Update qtermwidget to modern version

  • Property mode set to 100644
File size: 3.1 KB
Line 
1# [vt100.keytab] Konsole Keyboard Table (VT100 keys)
2#
3# --------------------------------------------------------------
4
5keyboard "vt100 (historical)"
6
7# --------------------------------------------------------------
8#
9# This configuration table allows to customize the
10# meaning of the keys.
11#
12# The syntax is that each entry has the form :
13#
14#   "key" Keyname { ("+"|"-") Modename } ":" (String|Operation)
15#
16# Keynames are those defined in <qnamespace.h> with the
17# "Qt::Key_" removed. (We'd better insert the list here)
18#
19# Mode names are :
20#
21# - Shift
22# - Alt
23# - Control
24#
25#   The VT100 emulation has two modes that can affect the
26#   sequences emitted by certain keys. These modes are
27#   under control of the client program.
28#   
29# - Newline     : effects Return and Enter key.
30# - Application : effects Up and Down key.
31#
32# - Ansi        : effects Up and Down key (This is for VT52, really).
33#
34# Operations are
35#
36# - scrollUpLine
37# - scrollUpPage
38# - scrollDownLine
39# - scrollDownPage
40#
41# - emitSelection
42#
43# If the key is not found here, the text of the
44# key event as provided by QT is emitted, possibly
45# preceded by ESC if the Alt key is pressed.
46#
47# --------------------------------------------------------------
48
49key Escape : "\E"
50key Tab    : "\t"
51
52# VT100 can add an extra \n after return.
53# The NewLine mode is set by an escape sequence.
54
55key Return-NewLine : "\r" 
56key Return+NewLine : "\r\n"
57
58# Some desperately try to save the ^H.
59
60key Backspace : "\x7f"
61key Delete    : "\E[3~"
62
63# These codes are for the VT52 mode of VT100
64# The Ansi mode (i.e. VT100 mode) is set by
65# an escape sequence
66
67key Up   -Shift-Ansi : "\EA"
68key Down -Shift-Ansi : "\EB"
69key Right-Shift-Ansi : "\EC"
70key Left -Shift-Ansi : "\ED"
71
72# VT100 emits a mode bit together
73# with the arrow keys.The AppCuKeys
74# mode is set by an escape sequence.
75
76key Up   -Shift+Ansi+AppCuKeys : "\EOA"
77key Down -Shift+Ansi+AppCuKeys : "\EOB"
78key Right-Shift+Ansi+AppCuKeys : "\EOC"
79key Left -Shift+Ansi+AppCuKeys : "\EOD"
80
81key Up   -Shift+Ansi-AppCuKeys : "\E[A"
82key Down -Shift+Ansi-AppCuKeys : "\E[B"
83key Right-Shift+Ansi-AppCuKeys : "\E[C"
84key Left -Shift+Ansi-AppCuKeys : "\E[D"
85
86# function keys (FIXME: make pf1-pf4)
87
88key F1     : "\E[11~"
89key F2     : "\E[12~"
90key F3     : "\E[13~"
91key F4     : "\E[14~"
92key F5     : "\E[15~"
93
94key F6     : "\E[17~"
95key F7     : "\E[18~"
96key F8     : "\E[19~"
97key F9     : "\E[20~"
98key F10    : "\E[21~"
99key F11    : "\E[23~"
100key F12    : "\E[24~"
101
102key Home   : "\E[H" 
103key End    : "\E[F" 
104
105key PgUp    -Shift : "\E[5~" 
106key PgDown  -Shift : "\E[6~" 
107key Insert  -Shift : "\E[2~" 
108
109# Keypad-Enter. See comment on Return above.
110
111key Enter+NewLine : "\r\n"
112key Enter-NewLine : "\r" 
113
114key Space +Control : "\x00"
115
116# some of keys are used by konsole.
117
118key Up     +Shift : scrollLineUp
119key PgUp   +Shift : scrollPageUp
120key Down   +Shift : scrollLineDown
121key PgDown +Shift : scrollPageDown
122
123key ScrollLock     : scrollLock
124
125
126#----------------------------------------------------------
127
128# keypad characters as offered by Qt
129# cannot be recognized as such.
130
131#----------------------------------------------------------
132
133# Following other strings as emitted by konsole.
Note: See TracBrowser for help on using the repository browser.