summaryrefslogtreecommitdiff
path: root/console/hurd.ti
blob: 18c866240420eaf65d826ec1996de5cf5de39b7e (plain)
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
163
164
165
166
167
168
169
170
hurd|The GNU Hurd console server,
# Over-all properties.
# We use 8-bit characters
	km,
# Although we don't do XON/XOFF, we don't want padding characters.
	xon,
# Hard reset.
	rs1=\EM,

# Compatibility:
# to vt100: We don't specify <xenl>, as we don't have the
# eat_newline_glitch.  We don't support scrolling regions.  We don't
# support setting/removing tab stops.
# to linux: W, we don't have PC character set.  We don't have insert
# mode.

# Cursor related capabilities.

# Moving the cursor.
# We have automatic margins.
	am,
# We wrap around the left edge.
	bw,
# Carriage return and newline.
	cr=^M, nel=^M^J,
# Move cursor to home position (to position P1, P2).
	home=\E[H, cup=\E[%i%p1%d;%p2%dH,
# Move cursor one character (P1 characters) backwards.
	cub1=\E[D, cub=\E[%p1%dD,
# Move cursor one line (P1 lines) downwards.
	cud1=\E[B, cud=\E[%p1%dB,
# Move cursor one character (P1 characters) forwards.
	cuf1=\E[C, cuf=\E[%p1%dC,
# Move cursor one line (P1 lines) upwards.
	cuu1=\E[A, cuu=\E[%p1%dA,
# Set horizontal (vertical) cursor position to P1.
	hpa=\E[%i%p1%dG, vpa=\E[%i%p1%dd,
# Save (restore) cursor position.
	sc=\E7, rc=\E8,
# Set the scrolling region to lines P1 to P2.
	csr=\E[%i%p1%d;%p2%dr,

# Modifying cursor attributes.
# Make cursor invisible, very visible or normal.
	civis=\E[?25l, cvvis=\E[34l, cnorm=\E[?25h,

# Tabulator stops.
# We have tabulator stops every eight rows.
	it#8,
# Move cursor to next tabulator stop.
	ht=^I,
# Move cursor to previous tabulator stop.
	cbt=\E[Z,
# XXX When we implement this.
# Set tab stop in the current column of every row.
# hts=\EH,
# Delete all tab stops.
# tbc=\E[3g,


# Screen editing capabilities.
# Clear screen.
	clear=\Ec,
# Clear to end of screen.
	ed=\E[J,
# Clear to end (beginning) of line.
	el=\E[K, el1=\E[1K,

# Insert one character (P1 characters).
# <ich1> not included because we have insert mode.
#	ich1=\E[@,
	ich=\E[%p1%d@,
# Enter (leave) insert mode.
	smir=\E[4h, rmir=\E[4l,
# It is save to move when in insert mode.	
	mir,
# Delete one character (P1 characters).
	dch1=\E[P, dch=\E[%p1%dP,
# Erase the next N characters.
	ech=\E[%p1%dX,
# Insert one line (P1 lines).
	il1=\E[L, il=\E[%p1%dL,
# Delete one line (P1 lines).
	dl1=\E[M, dl=\E[%p1%dM,
# Scroll the whole screen one line (P1 lines) upwards.
# XXX Good optimization is to use ^J as Linux, although this will put
# things into the scrollback buffer, which might not be what we want.
	ind=\E[S, indn=\E[%p1%dS,
# Scroll the whole screen one line (P1 lines) downwards.
	rin=\E[%p1%dT, ri=\E[T,


# Bell capabilities.
# Audible bell.
	bel=^G,
# Flash the screen (visible bell).
	flash=\Eg,


# Keycodes for special keys.
# Backspace key.
	kbs=\177,
# Keycode for left, down, right and up arrow key.
	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
# Keycodes for function keys.
	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[15~,
        kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
	kf18=\E[32~, kf19=\E[33~, kf20=\E[34~,
# Keycode for backtab key.
	kcbt=\E[Z,
# Keycode for suspend key.
	kspd=^Z,
# Keycode for home (insert, delete, end) key.
	khome=\E[1~, kich1=\E[2~, kdch1=\E[3~, kend=\E[4~,
# Keycode for previous (next) page key.
	kpp=\E[5~, knp=\E[6~,
# XXX When we implement this.
# Keycode for center of keypad area.
#	kb2=\E[G
# XXX When we implement this.
# Mouse event has occured.
#	kmous=\E[M,
# XXX How does this come here?  We don't have Lower Left.
#	kll=\E[F,


# Text attribute capabilities.
	acsc=++\,\,--..00ii``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,

# Color support.
# We erase the screen with the current background color.
	bce,
# Number of colors and color pairs at the same time.
	colors#8,
	pairs#64,
# Video attributes colliding with color.
# ORed: A_STANDOUT 1, A_UNDERLINE 2, A_REVERSE 4, A_BLINK 8, A_DIM 16,
# A_BOLD 32, A_INVIS 64
# We do our own display optimization, depending on the display driver.
#	ncv#18,
# Set background (foreground) color.
	setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
# Set default color pair to its original value.
	op=\E[39;49m,

# Video attributes.
# Overstrikes are erasable with a blank.
	eo,
# It is save to move when in standout mode.
	msgr,
# Enable dim (blinking, bold, invisible, reverse) attribute.
	dim=\E[2m, blink=\E[5m, bold=\E[1m, invis=\E[8m, rev=\E[7m,
# Enable (disable) standout mode.
	smso=\E[7m, rmso=\E[27m,
# Enable (disable) underline mode.
	smul=\E[4m, rmul=\E[24m,
# Enable (disable) italic mode.
	sitm=\E[3m, ritm=\E[23m,
# Enable (disable) real bold (not intensity bright) mode.  This is a
# GNU extension.
	gsbom=\E[>1h, grbom=\E[>1l,
# XXX Linux has those also for rmpch and smpch.
# Enable (disable) alternative character set.
	smacs=\E[11m, rmacs=\E[10m,
# Set all attributes.
	sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
# Reset all attributes.
	sgr0=\E[0m,