~larryprice/acolyterm/release-0.1

« back to all changes in this revision

Viewing changes to src/plugin/konsole/assets/kb-layouts/historic/vt100.keytab

  • Committer: Larry Price
  • Date: 2016-06-15 14:47:59 UTC
  • Revision ID: larry.price@canonical.com-20160615144759-6wopn0gxwgta3x1n
Updating QMLTermWidget and removing unnecessary konsole codebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# [vt100.keytab] Konsole Keyboard Table (VT100 keys)
2
 
#
3
 
# --------------------------------------------------------------
4
 
 
5
 
keyboard "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
 
# preceeded by ESC if the Alt key is pressed.
46
 
#
47
 
# --------------------------------------------------------------
48
 
 
49
 
key Escape : "\E"
50
 
key Tab    : "\t"
51
 
 
52
 
# VT100 can add an extra \n after return.
53
 
# The NewLine mode is set by an escape sequence.
54
 
 
55
 
key Return-NewLine : "\r"  
56
 
key Return+NewLine : "\r\n"
57
 
 
58
 
# Some desperately try to save the ^H.
59
 
 
60
 
key Backspace : "\x7f"
61
 
key 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
 
 
67
 
key Up   -Shift-Ansi : "\EA"
68
 
key Down -Shift-Ansi : "\EB"
69
 
key Right-Shift-Ansi : "\EC"
70
 
key 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
 
 
76
 
key Up   -Shift+Ansi+AppCuKeys : "\EOA"
77
 
key Down -Shift+Ansi+AppCuKeys : "\EOB"
78
 
key Right-Shift+Ansi+AppCuKeys : "\EOC"
79
 
key Left -Shift+Ansi+AppCuKeys : "\EOD"
80
 
 
81
 
key Up   -Shift+Ansi-AppCuKeys : "\E[A"
82
 
key Down -Shift+Ansi-AppCuKeys : "\E[B"
83
 
key Right-Shift+Ansi-AppCuKeys : "\E[C"
84
 
key Left -Shift+Ansi-AppCuKeys : "\E[D"
85
 
 
86
 
# function keys (FIXME: make pf1-pf4)
87
 
 
88
 
key F1     : "\E[11~"
89
 
key F2     : "\E[12~"
90
 
key F3     : "\E[13~"
91
 
key F4     : "\E[14~"
92
 
key F5     : "\E[15~"
93
 
 
94
 
key F6     : "\E[17~" 
95
 
key F7     : "\E[18~" 
96
 
key F8     : "\E[19~" 
97
 
key F9     : "\E[20~" 
98
 
key F10    : "\E[21~" 
99
 
key F11    : "\E[23~" 
100
 
key F12    : "\E[24~" 
101
 
 
102
 
key Home   : "\E[H"  
103
 
key End    : "\E[F"  
104
 
 
105
 
key Prior -Shift : "\E[5~"  
106
 
key Next  -Shift : "\E[6~"  
107
 
key Insert-Shift : "\E[2~"  
108
 
 
109
 
# Keypad-Enter. See comment on Return above.
110
 
 
111
 
key Enter+NewLine : "\r\n"
112
 
key Enter-NewLine : "\r"  
113
 
 
114
 
key Space +Control : "\x00"
115
 
 
116
 
# some of keys are used by konsole.
117
 
 
118
 
key Up    +Shift   : scrollLineUp
119
 
key Prior +Shift   : scrollPageUp
120
 
key Down  +Shift   : scrollLineDown
121
 
key Next  +Shift   : scrollPageDown
122
 
 
123
 
key 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.