File: terminfo

package info (click to toggle)
joe 2.8-12
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,136 kB
  • ctags: 1,764
  • sloc: ansic: 18,799; asm: 224; makefile: 122; sh: 9
file content (162 lines) | stat: -rw-r--r-- 4,668 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
##############################################################################
#
# Joe's termcap file
#
# These expect that you're using some kind of handshaking (no padding info
# is given).  Also JOE doesn't use the last column of the screen, so the
# am/xn parameters can be wrong
#
# JOE understands these extensions to termcap:
#
# AL DL SF SR IC DC UP DO RI LE - parametized versions of normal termcap
#                                 capabilities.  For example, AL inserts n
#                                 lines and LE moves n positions left.
#
# rr                            - Flag which indicates that the cursor
#                                 is restricted to scrolling region (cursor
#                                 addressing is still screen relative, however).
#
# cV                            - Like cv, but goes to beginning of given
#                                 line.
#
# JOE understands these key sequence capabilities:
#
# k1 - k9			- F1 - F9
# k0				- F0
# k;				- F10
# kh				- Home
# kH				- End
# kP				- PageUp
# kN				- PageDn
# kI				- Insert
# kD				- Delete
# kl kr ku kd			- Left, Right, Up, Down
#
##############################################################################

# The pre-ansi terminal

vt52|dec vt52,
	xon,
	cols#80, lines#24,
	bel=^G, clear=\EH\EJ, cr=\r, cub1=\b, cud1=\n,
	cuf1=\EC, cup=\EY%p1%'\s'%+%c%p2%'\s'%+%c, cuu1=\EA,
	ed=\EJ, el=\EK, home=\EH, ht=\t, ind=\n, kcub1=\ED,
	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, ri=\EI,

##############################################################################
#
# The "ANSI" family of terminals
#
##############################################################################

# The capabilities in this entry are understood to be the least-common
# denominator of what's called ANSI (except, of course, for the IBM PC, which
# doesn't know what ESC [ J is).

ansi|Basic Ansi tty,
	am, msgr, xon,
	cols#80, lines#25,
	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
	cr=\r, cub=\E[%p1%dD, cub1=\b, cud=\E[%p1%dB, cud1=\n,
	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
	cuu=\E[%p1%dA, cuu1=\E[A, dim=\E[2m, ed=\E[J, el=\E[K,
	home=\E[H, ht=\t, ind=\n, kcub1=\E[D, kcud1=\E[B,
	kcuf1=\E[C, kcuu1=\E[A, rmso=\E[m, rmul=\E[m,
	sgr0=\E[m, smso=\E[7m, smul=\E[4m,

# Use for good implementations of non-DEC ansi.  Most PC UNIX consoles
# look like this

fansi|Full Ansi tty (includes inserts and deletes),
	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
	use=ansi,

# Use for vt100-like ansi implementations

ansi100,
	lines#24,
	csr=\E[%i%p1%d;%p2%dr, ri=\EM,
	use=ansi,

# Advanced DEC-style ansi terminals.  Use for vt102s and above

decansi,
	mir,
	lines#24,
	csr=\E[%i%p1%d;%p2%dr, dch=\E[%p1%dP, dch1=\E[P,
	dl=\E[%p1%dM, dl1=\E[M, il=\E[%p1%dL, il1=\E[L,
	ri=\EM, rmir=\E[4l, smir=\E[4h,
	use=ansi,

##############################################################################
#
# Derived "ANSI" terminals
#
##############################################################################

ansisys|IBM PC using ANSI.SYS,
	msgr@,
	clear=\E[H\E[2J, cud1=\E[B, ed@, ht@, kcub1@, kcud1@,
	kcuf1@, kcuu1@,
	use=ansi,

nansisys|IBM PC using NANSI.SYS or ZANSI.SYS,
	msgr@,
	clear=\E[H\E[2J, cud1=\E[B, ed@, ht@, kcub1@, kcud1@,
	kcuf1@, kcuu1@,
	use=fansi,

xenix,
	cbt=\E[Z, kdch1=^_, kf0=\E[V, kf1=\E[M, kf2=\E[N,
	kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S,
	kf8=\E[T, kf9=\E[U, khome=\E[H, kich1=\E[L, kll=\E[F,
	knp=\E[G, kpp=\E[I,
	use=fansi,

linux,
	kdch1=\E[3~, kf1=\E[[A, kf2=\E[[B, kf3=\E[[C,
	kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
	kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
	kll=\E[4~, knp=\E[6~, kpp=\E[5~,
	use=fansi,

pt,
	lines#26,
	ind@, kf0=\EOY, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
	kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
	kf9=\EOX,
	use=fansi,

ptem,
	lines#26,
	kf0=\EOY, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
	kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX,
	use=decansi,

xterm|X windows terminal emulator,
	xenl,
	kbs=\b, kf0=\E[21~, kf1=\E[11~, kf2=\E[12~,
	kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~,
	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[8~,
	rmkx=\E>, smkx=\E=,
	use=decansi,

vt100|DEC VT100,
	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H,
	rmkx=\E>, smkx=\E=,
	use=ansi100,

vt102|DEC VT102,
	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H,
	rmkx=\E>, smkx=\E=,
	use=decansi,

vt220|DEC VT220,
	kbs=^_, kdch1=\E[3~, kf0=\E[29~, kf1=\EOP, kf2=\EOQ,
	kf3=\EOR, kf4=\EOS, kf5=\E[17~, kf6=\E[18~,
	kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, khome=\E[1~,
	kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~,
	rmkx=\E>, smkx=\E=,
	use=decansi,