Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3a5b8e15e | ||
|
|
7e7760c2ed | ||
|
|
adde5c6d9d | ||
|
|
f876810626 | ||
|
|
a1e3b94b37 | ||
|
|
4b17dddb10 | ||
|
|
55adf0aad1 | ||
|
|
82494f248d | ||
|
|
c6b89f23e7 | ||
|
|
1c1621da69 | ||
|
|
1aa26b4ecd | ||
|
|
7d32471eff | ||
|
|
7cb0d95509 | ||
|
|
37863356b0 | ||
|
|
be7c6d7fb0 | ||
|
|
e40d8da194 | ||
|
|
efaf1c2a94 | ||
|
|
1b6c6535c1 | ||
|
|
800800a3bb | ||
|
|
3865e9eaaf | ||
|
|
e5295629cd | ||
|
|
0e738c3d72 | ||
|
|
7f297e297c | ||
|
|
f4a6c20f46 | ||
|
|
e0ec2cf984 | ||
|
|
a92a678e25 | ||
|
|
de7e0e9c8d | ||
|
|
086cd61511 | ||
|
|
95033753be | ||
|
|
b7261c84aa | ||
|
|
05a1ff03e9 | ||
|
|
eeffbe11ab | ||
|
|
8a9475a0dd | ||
|
|
ce3efa9e9b | ||
|
|
efd04ccad6 | ||
|
|
26c101b706 | ||
|
|
384fabdb5b | ||
|
|
deb720af7f | ||
|
|
57f39defaf | ||
|
|
3036051fb1 | ||
|
|
d8f3809345 | ||
|
|
b78c5085f7 | ||
|
|
b4b513c791 | ||
|
|
15c2bff9fa | ||
|
|
c7b033b8f0 | ||
|
|
0e232a4115 | ||
|
|
3ce96aea8a | ||
|
|
ed90afb743 | ||
|
|
c9bd58e4dd | ||
|
|
f25c75d72a | ||
|
|
1827e0643f | ||
|
|
b3326ab63b | ||
|
|
f741df9cda | ||
|
|
73879c1729 | ||
|
|
5facd29f75 | ||
|
|
b233007e0f | ||
|
|
c772a6e571 | ||
|
|
4682cc9596 | ||
|
|
4e14a4a97f | ||
|
|
c99db5b017 | ||
|
|
44e1b79abf | ||
|
|
08e06ef079 | ||
|
|
addc848345 | ||
|
|
9c44229c62 | ||
|
|
082bab29f3 | ||
|
|
ac4c6da4ef | ||
|
|
4d37763ee7 | ||
|
|
fc2b366968 | ||
|
|
3c6ec1995d | ||
|
|
2696f81875 | ||
|
|
78215c8ee0 | ||
|
|
fe3fb82d29 | ||
|
|
fdce8bba1a | ||
|
|
d5994b43ca | ||
|
|
7c34ff1703 | ||
|
|
3c99be68e8 | ||
|
|
e7904128c6 | ||
|
|
61b20f4bc1 | ||
|
|
373a8f5628 | ||
|
|
172f65436c | ||
|
|
b26df1d0d3 | ||
|
|
cf04354e06 | ||
|
|
55087ec2c7 | ||
|
|
1cbe56026b | ||
|
|
440a19a662 | ||
|
|
6312f76ca4 | ||
|
|
0df350cd0b | ||
|
|
1cea02be8d | ||
|
|
2b6521f5d2 | ||
|
|
927d8fb459 | ||
|
|
a29ab30f25 | ||
|
|
90e1427632 | ||
|
|
cc86d148cb | ||
|
|
d5640c7729 | ||
|
|
801ea034b6 | ||
|
|
e87d21bb3d | ||
|
|
e7bb14e03e | ||
|
|
4389f2eb1b | ||
|
|
88bb76c1bc | ||
|
|
16ccf344de | ||
|
|
461aac159c | ||
|
|
7474a2fc37 | ||
|
|
620e3bb39e | ||
|
|
44597b359e | ||
|
|
3b16695f4e | ||
|
|
ea782bfc5d | ||
|
|
93f31166bf | ||
|
|
69ee3ba3a7 | ||
|
|
73177ba366 | ||
|
|
ace789a79f | ||
|
|
c4a9ccec19 | ||
|
|
5d5a7c627a | ||
|
|
8665905216 | ||
|
|
27468403cc | ||
|
|
d5b80e05e8 | ||
|
|
5260a9ea22 | ||
|
|
ee3e0a9fd0 | ||
|
|
ba9d0365ac | ||
|
|
950ff21e17 | ||
|
|
5d39afc902 | ||
|
|
9df1e56142 | ||
|
|
0fbe1559c8 | ||
|
|
86261187ab | ||
|
|
9888c5064b | ||
|
|
f8db65439a | ||
|
|
76a8e5f72b | ||
|
|
abe85c0e99 | ||
|
|
091ae143ce | ||
|
|
cd90969cab | ||
|
|
b0ed3e2897 | ||
|
|
c631e9bb91 | ||
|
|
393825f9f8 | ||
|
|
e5d7c5a69e | ||
|
|
784765ca35 | ||
|
|
1d378227c0 | ||
|
|
c5dd7fb377 | ||
|
|
b56a0da283 | ||
|
|
71b09ec4f1 | ||
|
|
6d4e525ed9 | ||
|
|
35421371ca | ||
|
|
ee3fbeb6c8 | ||
|
|
2e38ab7afd | ||
|
|
eb6713acf1 | ||
|
|
9e813947cf | ||
|
|
b7a7f171ef | ||
|
|
25f47cb83a | ||
|
|
ffeeb678c5 | ||
|
|
bffa6e5cc6 | ||
|
|
b16b5d77d3 | ||
|
|
2bd0c23fa7 | ||
|
|
034dc71fb8 | ||
|
|
fbfa1f83eb | ||
|
|
ac8f05c45a | ||
|
|
02f3b37a2d | ||
|
|
0cc7ee5e73 | ||
|
|
4eddf19fdc | ||
|
|
7efa4514d1 | ||
|
|
bf6cf05ba5 | ||
|
|
5caa46cf57 | ||
|
|
0b489c4a6a | ||
|
|
2752018e27 | ||
|
|
0d88f1ef75 | ||
|
|
af9e248f97 | ||
|
|
5dfd5df4fe | ||
|
|
9cae1eb0de | ||
|
|
ed5b8700a6 | ||
|
|
d7b1e31eec | ||
|
|
29b209f5f5 | ||
|
|
3af49e34f6 | ||
|
|
a7d7e29300 | ||
|
|
375b6e5b17 | ||
|
|
3a095984b0 | ||
|
|
c3b0e2202b | ||
|
|
980c5956ed | ||
|
|
eb360e5fd1 | ||
|
|
246d704ba0 | ||
|
|
055a4f6d2c | ||
|
|
e9c677816c | ||
|
|
74d6abfee5 | ||
|
|
c3b6345595 | ||
|
|
2f215654a4 | ||
|
|
11bec67875 | ||
|
|
b6cfff1625 | ||
|
|
21a0c4a2e0 | ||
|
|
2b3c1219c8 | ||
|
|
816a70c01b | ||
|
|
1ba5f4172f | ||
|
|
50a619cee3 | ||
|
|
0eaed8f085 | ||
|
|
e4bf2679c1 | ||
|
|
4876d6e05b | ||
|
|
88a8f85a8a | ||
|
|
111199cf22 | ||
|
|
e3671006db | ||
|
|
426887ccec | ||
|
|
58a57a2305 | ||
|
|
2257932261 | ||
|
|
b93741e34d | ||
|
|
9fbafe55c9 | ||
|
|
d81250e5f9 | ||
|
|
c5a9b799d4 | ||
|
|
85849ce72a | ||
|
|
15cc8754c2 | ||
|
|
ba1e9daeef | ||
|
|
a62789788c | ||
|
|
b156352656 | ||
|
|
776a022e39 | ||
|
|
fe2ba95b3d | ||
|
|
977c5d9089 | ||
|
|
d018c9c8ef | ||
|
|
720cb816dc | ||
|
|
b9d5fec4f2 | ||
|
|
8f1144edee | ||
|
|
121d9109e8 | ||
|
|
c092bce366 | ||
|
|
af29fb2a50 | ||
|
|
122ed57702 | ||
|
|
a1cd28f809 | ||
|
|
f2da43a0b6 | ||
|
|
86cf8e3073 | ||
|
|
4a4ae19158 | ||
|
|
dd0b7a077f | ||
|
|
f471a32d29 | ||
|
|
017af76f5c | ||
|
|
42505c5215 | ||
|
|
462a966ee2 | ||
|
|
56c551e4f4 | ||
|
|
a61b9ea82e | ||
|
|
da4a77edbe | ||
|
|
98dc91eb82 | ||
|
|
67c1a23053 | ||
|
|
e09709d92d | ||
|
|
b1d383a0a3 | ||
|
|
e02d72441a | ||
|
|
052a617828 | ||
|
|
6e88c7f602 | ||
|
|
59fe59d3d1 | ||
|
|
98b6f84bfc | ||
|
|
66669a5585 | ||
|
|
1d6702024b | ||
|
|
579f12d47b | ||
|
|
466decd535 | ||
|
|
930b2c4a7f | ||
|
|
a984ffc4cb | ||
|
|
cfefa054e8 | ||
|
|
b11d85c9be | ||
|
|
7f17a70834 | ||
|
|
588ba51a53 | ||
|
|
c79df9f78d | ||
|
|
4cdcc39539 | ||
|
|
81c678e53e | ||
|
|
c58950f2ef | ||
|
|
91fa81dbac | ||
|
|
6696ef8563 | ||
|
|
ff040e9894 | ||
|
|
aaef13aaaa | ||
|
|
12de47a933 | ||
|
|
c084c06b40 | ||
|
|
93901ca4fe | ||
|
|
ee7fd748ac | ||
|
|
c6853fe185 | ||
|
|
94771d0588 | ||
|
|
8fdba7494f | ||
|
|
cfea72c7b4 | ||
|
|
6c0a1eff2f | ||
|
|
7823aeb1f9 | ||
|
|
83b0656588 | ||
|
|
970d44a60d | ||
|
|
ff5edcfd70 | ||
|
|
cb2e0e9c31 | ||
|
|
53ac69e90d | ||
|
|
751fb765e4 | ||
|
|
be2877cd04 | ||
|
|
d8e11bdb0e | ||
|
|
33558ca042 | ||
|
|
6de1ba6e74 | ||
|
|
b11e22df7d | ||
|
|
cee6ccc6ee | ||
|
|
b6b90253b8 | ||
|
|
bcb7ec68c2 | ||
|
|
df54ab0405 | ||
|
|
896310e592 | ||
|
|
13a8eeb810 | ||
|
|
ab9c9a4e3a | ||
|
|
a20125a3d1 | ||
|
|
23bb97d9f3 | ||
|
|
0dbf9c8c12 | ||
|
|
907cb8bfa6 | ||
|
|
9d613092d6 | ||
|
|
4bd087766f | ||
|
|
b032814e25 | ||
|
|
8e66b5cc16 | ||
|
|
8d2d8848e8 | ||
|
|
d5f3d120ea | ||
|
|
f78b793d91 | ||
|
|
6f260ba164 | ||
|
|
8503f954a1 | ||
|
|
cddbd6eee5 | ||
|
|
3959a99293 | ||
|
|
4736edd469 | ||
|
|
189a81caa1 | ||
|
|
9b404c0dfb | ||
|
|
d59f92d6f1 | ||
|
|
b2db58c2a0 | ||
|
|
6734de9b6e | ||
|
|
7d352f1436 | ||
|
|
5beae6a62e | ||
|
|
0107293a44 | ||
|
|
80da37203e | ||
|
|
8eaed2cdda | ||
|
|
babf4db52b | ||
|
|
aede91e22a | ||
|
|
9d5ea14b9d | ||
|
|
d3c5aba2d9 | ||
|
|
742a4a18c2 | ||
|
|
73e37f5629 | ||
|
|
89c8a3a2d9 | ||
|
|
9b63dd9f43 | ||
|
|
1adf2e3978 | ||
|
|
674434ef6f | ||
|
|
a047431d34 | ||
|
|
fe72483686 | ||
|
|
1ab42fd49e | ||
|
|
4d649c2403 | ||
|
|
0a208cb616 | ||
|
|
e8b18dd97b | ||
|
|
fd1149866f | ||
|
|
86c5cb6de6 | ||
|
|
732b9601ed | ||
|
|
54bc450dbf | ||
|
|
af75c433e5 | ||
|
|
41a4497ecf | ||
|
|
00ba6969f8 | ||
|
|
eaf38bf310 | ||
|
|
b61925b5d6 | ||
|
|
81a048d6cf | ||
|
|
b61afd24be | ||
|
|
70464e2080 | ||
|
|
9b74fcadc4 | ||
|
|
d581bfccd7 | ||
|
|
b1e6099220 | ||
|
|
edfbc9b432 | ||
|
|
638a30359d | ||
|
|
d85f7319a2 | ||
|
|
1243581772 | ||
|
|
722688d989 | ||
|
|
6f87a39444 | ||
|
|
ce27e63491 | ||
|
|
9e004846de | ||
|
|
68d8fcf62a | ||
|
|
e4bf56ae1a | ||
|
|
d693b304c7 | ||
|
|
3a50a4fd93 | ||
|
|
3470e3af23 | ||
|
|
6faedce53a | ||
|
|
ab7037cb33 | ||
|
|
f693476365 | ||
|
|
8c3757986a | ||
|
|
273d4ba938 | ||
|
|
c43526153f | ||
|
|
58083da61f | ||
|
|
ebc287271c | ||
|
|
7d325a3797 | ||
|
|
223909e008 | ||
|
|
b6af0fdc20 | ||
|
|
2080dfebea | ||
|
|
fbc6ec3207 | ||
|
|
9d82bdd947 | ||
|
|
97695baf4f | ||
|
|
32e160c939 | ||
|
|
42344b7154 | ||
|
|
a79bc96c94 | ||
|
|
df5c5ed045 | ||
|
|
5ce6c5c032 | ||
|
|
ef69118028 | ||
|
|
f732ca5f1f | ||
|
|
cfe897554d | ||
|
|
9703859e6c | ||
|
|
591d147af7 | ||
|
|
1132d9e2d6 | ||
|
|
c4225bdcc9 | ||
|
|
f211bc2eed | ||
|
|
ee858b4805 | ||
|
|
80f70f1c22 | ||
|
|
23cc3fc571 | ||
|
|
160bda1b60 | ||
|
|
596bb133a5 | ||
|
|
0ba53e48c7 | ||
|
|
e1ce89f267 | ||
|
|
12c25bcea9 | ||
|
|
326586ba43 | ||
|
|
ae5baac932 | ||
|
|
bef87acd0d | ||
|
|
1bb7398f4b | ||
|
|
e851736e8b | ||
|
|
188293c828 | ||
|
|
7d88cf88d0 | ||
|
|
1f6e7b84c6 | ||
|
|
581ae58b41 | ||
|
|
5258d60545 | ||
|
|
b4f623f910 | ||
|
|
eab9aad1dc | ||
|
|
2181040594 | ||
|
|
c186c8ef9a | ||
|
|
6db6980e27 | ||
|
|
c563328571 | ||
|
|
a1018e0e9e | ||
|
|
fbb66da9a9 | ||
|
|
42b2912e21 | ||
|
|
5d611cd547 | ||
|
|
4db3df312a | ||
|
|
e8c13ebe80 | ||
|
|
5c93f399c5 | ||
|
|
44226483fb | ||
|
|
b09401b96b | ||
|
|
a7922bd1d9 | ||
|
|
ce3f4fc647 | ||
|
|
d2f157c741 | ||
|
|
10e49a0505 | ||
|
|
9e8f5f1348 | ||
|
|
499c70cda0 | ||
|
|
2f96cfeada | ||
|
|
2f5ebe0a4d | ||
|
|
476f93794a | ||
|
|
d01c55c9ab | ||
|
|
b3b7ffce5f | ||
|
|
0f4dd5035e | ||
|
|
7cdaf130b1 | ||
|
|
639f16d200 | ||
|
|
636c369d86 | ||
|
|
3ba517e796 | ||
|
|
eff05c7b90 | ||
|
|
e6b3f5c755 | ||
|
|
0981437524 | ||
|
|
f2dff29a16 | ||
|
|
4e6915a16b | ||
|
|
dab8326e64 | ||
|
|
cf65699a29 | ||
|
|
0a5e510209 | ||
|
|
4d794b3479 | ||
|
|
44d8c319a9 | ||
|
|
b8ffa1d7e9 | ||
|
|
d5f4554431 | ||
|
|
53937e045a | ||
|
|
2e37752961 | ||
|
|
8b4bfe31ec | ||
|
|
5d8aa08ba5 | ||
|
|
ad39f000be | ||
|
|
2f35cef54b | ||
|
|
129bcd7586 | ||
|
|
059d2ba264 | ||
|
|
a866108af2 | ||
|
|
1cf8b77d27 | ||
|
|
0ecfcc39b0 | ||
|
|
abe6f3b0e4 | ||
|
|
86fa756033 | ||
|
|
ccafacb3ff | ||
|
|
fd281ad336 | ||
|
|
d58dd3b8bc | ||
|
|
802f1922f9 | ||
|
|
a7f50ebb64 | ||
|
|
07d1edcd76 | ||
|
|
d61a2a8fce | ||
|
|
240411e7d0 | ||
|
|
e0d0a2b96e | ||
|
|
082d8bb82b | ||
|
|
6c6b65ea6e | ||
|
|
746931a3d4 | ||
|
|
a95f4f2ed9 | ||
|
|
7a132bd6ac | ||
|
|
fb4508b0b7 | ||
|
|
0cbcedb89f | ||
|
|
afc73c920d | ||
|
|
b3902ca178 | ||
|
|
f982c1c37c | ||
|
|
d83cbc27b9 | ||
|
|
3cb6793781 | ||
|
|
cf147ae9da | ||
|
|
f9a0524f94 | ||
|
|
a49919a10c | ||
|
|
0c0ada8a7f | ||
|
|
339e7f3571 | ||
|
|
09fe1e22ce | ||
|
|
5f28725471 | ||
|
|
05ebee6084 | ||
|
|
47d8633f15 | ||
|
|
0dedee5de8 | ||
|
|
0dce422d31 | ||
|
|
b8f79f0ed0 | ||
|
|
5e680d7102 | ||
|
|
dc01596e6d | ||
|
|
5d055fdc7c | ||
|
|
a6efc851b6 | ||
|
|
50b4785f26 | ||
|
|
c61b34e8e1 | ||
|
|
693e2413c8 | ||
|
|
0b3510df45 | ||
|
|
40c0ecfe82 | ||
|
|
e2ac1676b1 | ||
|
|
375efb8891 | ||
|
|
771ece25e8 | ||
|
|
1987ae4bac | ||
|
|
16f373e36c |
No files matched your search
@@ -1,3 +0,0 @@
|
|||||||
cbc18c988236c63a58ed24031805e8d36a3ad01a 0.1
|
|
||||||
f245ac2efd8ac2f1ac6bffae876c2663e794f79d 0.1.1
|
|
||||||
3c2f9f2ab5e433db1401047760ec31d66939b74b 0.2
|
|
||||||
@@ -0,0 +1,95 @@
|
|||||||
|
--
|
||||||
|
Why does st not handle utmp entries?
|
||||||
|
|
||||||
|
Use the excellent tool of utmp[0] for this task.
|
||||||
|
|
||||||
|
[0] http://git.suckless.org/utmp/
|
||||||
|
--
|
||||||
|
Some _random program_ complains that st is unknown/not
|
||||||
|
recognised/unsupported/whatever!
|
||||||
|
|
||||||
|
It means that st doesn’t have any terminfo entry on your system. Chances are
|
||||||
|
you did not make install. If you just want to test it without installing it,
|
||||||
|
you can manualy run tic -s st.info in st dir. It will compile st.info into a
|
||||||
|
fully working local terminfo description. You can delete it when you’re done.
|
||||||
|
--
|
||||||
|
Nothing works, and nothing is said about an unknown terminal!
|
||||||
|
|
||||||
|
* Some programs just assume they’re running in xterm i.e. they don’t rely on
|
||||||
|
terminfo. What you see is the current state of the “xterm compliance”.
|
||||||
|
* Some programs don’t complain about the lacking st description and default to
|
||||||
|
another terminal. In that case see the question about terminfo.
|
||||||
|
--
|
||||||
|
I get some weird glitches/visual bug on _random program_!
|
||||||
|
|
||||||
|
Try lauching it with a different TERM: $ TERM=xterm myapp. toe(1) will give
|
||||||
|
you a list of available terminals, but you’ll most likely switch between
|
||||||
|
xterm, st or st-256color. The default value for TERM can be changed in
|
||||||
|
config.h (TNAME).
|
||||||
|
--
|
||||||
|
How do I scroll back up?
|
||||||
|
|
||||||
|
Invoke st with a screen multiplexer like GNU screen[0] or tmux[1].
|
||||||
|
st -e screen works better for text reflowing. To enter screen’s scroll
|
||||||
|
back mode aka “copy mode”, it’s C-a ESC. You probably want defscrollback
|
||||||
|
10000 in your ~/.screenrc too.
|
||||||
|
|
||||||
|
[0] http://en.wikipedia.org/wiki/GNU_Screen
|
||||||
|
[1] http://en.wikipedia.org/wiki/Tmux
|
||||||
|
--
|
||||||
|
Why doesn't the Del key work in some programs?
|
||||||
|
|
||||||
|
Taken from the terminfo manpage:
|
||||||
|
|
||||||
|
If the terminal has a keypad that transmits codes when the keys
|
||||||
|
are pressed, this information can be given. Note that it is not
|
||||||
|
possible to handle terminals where the keypad only works in
|
||||||
|
local (this applies, for example, to the unshifted HP 2621 keys).
|
||||||
|
If the keypad can be set to transmit or not transmit, tive these
|
||||||
|
codes as smkx and rmkx. Otherwise the keypad is assumed to
|
||||||
|
always transmit.
|
||||||
|
|
||||||
|
In the st case smkx=\E[?1h\E= and rmkx=\E[?1l\E>, so it is mandatory that
|
||||||
|
applications which want to test against keypad keys, have to send these
|
||||||
|
sequences.
|
||||||
|
|
||||||
|
But buggy applications like bash and irssi for example don't do this. A fast
|
||||||
|
solution for them is to use the following command:
|
||||||
|
|
||||||
|
$ printf "\033?1h\033=" >/dev/tty
|
||||||
|
|
||||||
|
or
|
||||||
|
$ echo $(tput smkx) >/dev/tty
|
||||||
|
|
||||||
|
In the case of bash readline is used. Readline has a different note in its
|
||||||
|
manpage about this issue:
|
||||||
|
|
||||||
|
enable-keypad (Off)
|
||||||
|
When set to On, readline will try to enable the
|
||||||
|
application keypad when it is called. Some systems
|
||||||
|
need this to enable arrow keys.
|
||||||
|
|
||||||
|
Adding this option to your .inputrc will fix the keypad problem for all
|
||||||
|
applications using readline.
|
||||||
|
|
||||||
|
If you are using zsh, then read the zsh FAQ
|
||||||
|
(http://zsh.sourceforge.net/FAQ/zshfaq03.html#l25):
|
||||||
|
|
||||||
|
It should be noted that the O / [ confusion can occur with other keys
|
||||||
|
such as Home and End. Some systems let you query the key sequences
|
||||||
|
sent by these keys from the system's terminal database, terminfo.
|
||||||
|
Unfortunately, the key sequences given there typically apply to the
|
||||||
|
mode that is not the one zsh uses by default (it's the "application"
|
||||||
|
mode rather than the "raw" mode). Explaining the use of terminfo is
|
||||||
|
outside of the scope of this FAQ, but if you wish to use the key
|
||||||
|
sequences given there you can tell the line editor to turn on
|
||||||
|
"application" mode when it starts and turn it off when it stops:
|
||||||
|
|
||||||
|
function zle-line-init () { echoti smkx }
|
||||||
|
function zle-line-finish () { echoti rmkx }
|
||||||
|
zle -N zle-line-init
|
||||||
|
zle -N zle-line-finish
|
||||||
|
|
||||||
|
Putting these lines into your .zshrc will fix the problems.
|
||||||
|
--
|
||||||
|
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
A STATEMENT ON LEGACY SUPPORT
|
||||||
|
|
||||||
|
In the terminal world there is much cruft that comes from old and unsup‐
|
||||||
|
ported terminals that inherit incompatible modes and escape sequences
|
||||||
|
which noone is able to know, except when he/she comes from that time and
|
||||||
|
developed a graphical vt100 emulator at that time.
|
||||||
|
|
||||||
|
One goal of st is to only support what is really needed. When you en‐
|
||||||
|
counter a sequence which you really need, implement it. But while you
|
||||||
|
are at it, do not add the other cruft you might encounter while sneek‐
|
||||||
|
ing at other terminal emulators. History has bloated them and there is
|
||||||
|
no real evidence that most of the sequences are used today.
|
||||||
|
|
||||||
|
|
||||||
|
Christoph Lohmann <20h@r-36.net>
|
||||||
|
2012-09-13T07:00:36.081271045+02:00
|
||||||
|
|
||||||
@@ -1,25 +1,24 @@
|
|||||||
Copyright (c) 2009-2012, Aurélien APTEL <aurelien dot aptel at gmail dot com>
|
MIT/X Consortium License
|
||||||
Copyright (c) 2009, Anselm R Garbe <garbeam at gmail dot com>
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
© 2009-2012 Aurélien APTEL <aurelien dot aptel at gmail dot com>
|
||||||
modification, are permitted provided that the following conditions are met:
|
© 2012 Roberto E. Vargas Caballero <k0ga at shike2 dot com>
|
||||||
* Redistributions of source code must retain the above copyright
|
© 2012 Christoph Lohmann <20h at r-36 dot net>
|
||||||
notice, this list of conditions and the following disclaimer.
|
© 2009 Anselm R Garbe <garbeam at gmail dot com>
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
* Neither the name of the copyright holder nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
copy of this software and associated documentation files (the "Software"),
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
to deal in the Software without restriction, including without limitation
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
and/or sell copies of the Software, and to permit persons to whom the
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
Software is furnished to do so, subject to the following conditions:
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
The above copyright notice and this permission notice shall be included in
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
all copies or substantial portions of the Software.
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
DEALINGS IN THE SOFTWARE.
|
||||||
@@ -48,6 +48,7 @@ install: all
|
|||||||
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
||||||
@sed "s/VERSION/${VERSION}/g" < st.1 > ${DESTDIR}${MANPREFIX}/man1/st.1
|
@sed "s/VERSION/${VERSION}/g" < st.1 > ${DESTDIR}${MANPREFIX}/man1/st.1
|
||||||
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/st.1
|
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/st.1
|
||||||
|
@echo Please see the README file regarding the terminfo entry of st.
|
||||||
@tic -s st.info
|
@tic -s st.info
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
|||||||
@@ -21,15 +21,14 @@ necessary as root):
|
|||||||
|
|
||||||
Running st
|
Running st
|
||||||
----------
|
----------
|
||||||
If you don't install st, define TNAME to "xterm" in config.h or make sure to at
|
If you did not install st with make clean install, you must compile
|
||||||
least compile st terminfo entry with the following command:
|
the st terminfo entry with the following command:
|
||||||
|
|
||||||
tic -s st.info
|
tic -s st.info
|
||||||
|
|
||||||
It should print the path of the compiled terminfo entry. You can
|
|
||||||
safely remove it if you don't plan to use st anymore.
|
|
||||||
See the man page for additional details.
|
See the man page for additional details.
|
||||||
|
|
||||||
Credits
|
Credits
|
||||||
-------
|
-------
|
||||||
Based on Aurélien APTEL <aurelien dot aptel at gmail dot com> bt source code.
|
Based on Aurélien APTEL <aurelien dot aptel at gmail dot com> bt source code.
|
||||||
|
|
||||||
@@ -1,23 +1,32 @@
|
|||||||
vt emulation
|
vt emulation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* screen erased with background color ## capname:bce
|
* color definition in CSI
|
||||||
* back tab ## capname:cbt ## seq:CSI Z
|
* implement CSI parsing
|
||||||
* ...
|
* wide-character support in conjunction with fallback xft code
|
||||||
|
* mouse selection support
|
||||||
|
|
||||||
code & interface
|
code & interface
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
* clean selection code
|
|
||||||
* clean and complete terminfo entry
|
* clean and complete terminfo entry
|
||||||
* fast drawing
|
* add fallback fonts for the restricted xft code
|
||||||
* ...
|
* add a simple way to do multiplexing
|
||||||
|
|
||||||
bugs
|
bugs
|
||||||
----
|
----
|
||||||
|
|
||||||
* handle XOpenMI() errors
|
|
||||||
* fix shift up/down (shift selection in emacs)
|
* fix shift up/down (shift selection in emacs)
|
||||||
|
* fix selection paste for xatom STRING
|
||||||
|
* fix rows and column definition in fixed geometry
|
||||||
|
* fix -e handling
|
||||||
|
* remove DEC test sequence when appropriate
|
||||||
|
* reverse cursor when drawin light on light background
|
||||||
|
* text should be readable
|
||||||
|
* When some application outputting long text is run in the shell init scripts,
|
||||||
|
then this text might be stripped to the standard 80x25 due to st running the
|
||||||
|
virtual terminal at first priority. Maybe the vt initialisation could be
|
||||||
|
moved somewhere after knowing the right window size.
|
||||||
|
|
||||||
misc
|
misc
|
||||||
----
|
----
|
||||||
|
|||||||
+292
-53
@@ -1,12 +1,27 @@
|
|||||||
|
/* See LICENSE file for copyright and license details. */
|
||||||
|
|
||||||
#define FONT "-*-*-medium-r-*-*-*-120-75-75-*-60-*-*"
|
/*
|
||||||
#define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*"
|
* appearance
|
||||||
|
*
|
||||||
|
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
|
||||||
|
*/
|
||||||
|
static char font[] = "Liberation Mono:pixelsize=12:antialias=false:autohint=false";
|
||||||
|
static int borderpx = 2;
|
||||||
|
static char shell[] = "/bin/sh";
|
||||||
|
|
||||||
/* Space in pixels around the terminal buffer */
|
/* timeouts (in milliseconds) */
|
||||||
#define BORDER 2
|
static unsigned int doubleclicktimeout = 300;
|
||||||
|
static unsigned int tripleclicktimeout = 600;
|
||||||
|
|
||||||
|
/* frames per second st should at maximum draw to the screen */
|
||||||
|
static unsigned int xfps = 60;
|
||||||
|
static unsigned int actionfps = 30;
|
||||||
|
|
||||||
|
/* TERM value */
|
||||||
|
static char termname[] = "st-256color";
|
||||||
|
|
||||||
|
static unsigned int tabspaces = 8;
|
||||||
|
|
||||||
/* Default shell to use if SHELL is not set in the env */
|
|
||||||
#define SHELL "/bin/sh"
|
|
||||||
|
|
||||||
/* Terminal colors (16 first used in escape sequence) */
|
/* Terminal colors (16 first used in escape sequence) */
|
||||||
static const char *colorname[] = {
|
static const char *colorname[] = {
|
||||||
@@ -29,64 +44,288 @@ static const char *colorname[] = {
|
|||||||
"magenta",
|
"magenta",
|
||||||
"cyan",
|
"cyan",
|
||||||
"white",
|
"white",
|
||||||
|
|
||||||
[255] = 0,
|
[255] = 0,
|
||||||
|
|
||||||
/* more colors can be added after 255 to use with DefaultXX */
|
/* more colors can be added after 255 to use with DefaultXX */
|
||||||
"#cccccc",
|
"#cccccc",
|
||||||
"#333333",
|
"#333333",
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Default colors (colorname index)
|
|
||||||
foreground, background, cursor, unfocused cursor */
|
|
||||||
#define DefaultFG 7
|
|
||||||
#define DefaultBG 0
|
|
||||||
#define DefaultCS 256
|
|
||||||
#define DefaultUCS 257
|
|
||||||
|
|
||||||
/* Special keys (change & recompile st.info accordingly)
|
/*
|
||||||
Keep in mind that kpress() in st.c hardcodes some keys.
|
* Default colors (colorname index)
|
||||||
|
* foreground, background, cursor, unfocused cursor
|
||||||
|
*/
|
||||||
|
static unsigned int defaultfg = 7;
|
||||||
|
static unsigned int defaultbg = 0;
|
||||||
|
static unsigned int defaultcs = 256;
|
||||||
|
static unsigned int defaultucs = 257;
|
||||||
|
|
||||||
Mask value:
|
/*
|
||||||
* Use XK_ANY_MOD to match the key no matter modifiers state
|
* Colors used, when the specific fg == defaultfg. So in reverse mode this
|
||||||
* Use XK_NO_MOD to match the key alone (no modifiers)
|
* will reverse too. Another logic would only make the simple feature too
|
||||||
|
* complex.
|
||||||
key, mask, output */
|
*/
|
||||||
|
static unsigned int defaultitalic = 11;
|
||||||
|
static unsigned int defaultunderline = 7;
|
||||||
|
|
||||||
|
/* Internal shortcuts. */
|
||||||
|
#define MODKEY Mod1Mask
|
||||||
|
|
||||||
|
static Shortcut shortcuts[] = {
|
||||||
|
/* modifier key function argument */
|
||||||
|
{ MODKEY|ShiftMask, XK_Prior, xzoom, {.i = +1} },
|
||||||
|
{ MODKEY|ShiftMask, XK_Next, xzoom, {.i = -1} },
|
||||||
|
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
|
||||||
|
{ MODKEY|ShiftMask, XK_Insert, clippaste, {.i = 0} },
|
||||||
|
{ MODKEY, XK_Num_Lock, numlock, {.i = 0} },
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Special keys (change & recompile st.info accordingly)
|
||||||
|
*
|
||||||
|
* Mask value:
|
||||||
|
* * Use XK_ANY_MOD to match the key no matter modifiers state
|
||||||
|
* * Use XK_NO_MOD to match the key alone (no modifiers)
|
||||||
|
* keypad value:
|
||||||
|
* * 0: no value
|
||||||
|
* * > 0: keypad application mode enabled
|
||||||
|
* * = 2: term.numlock = 1
|
||||||
|
* * < 0: keypad application mode disabled
|
||||||
|
* cursor value:
|
||||||
|
* * 0: no value
|
||||||
|
* * > 0: cursor application mode enabled
|
||||||
|
* * < 0: cursor application mode disabled
|
||||||
|
* crlf value
|
||||||
|
* * 0: no value
|
||||||
|
* * > 0: crlf mode is enabled
|
||||||
|
* * < 0: crlf mode is disabled
|
||||||
|
*
|
||||||
|
* Be careful with the order of the definitons because st searchs in
|
||||||
|
* this table sequencially, so any XK_ANY_MOD must be in the last
|
||||||
|
* position for a key.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If you want something else but the function keys of X11 (0xFF00 - 0xFFFF)
|
||||||
|
* mapped below, add them to this array.
|
||||||
|
*/
|
||||||
|
static KeySym mappedkeys[] = { -1 };
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Which bits of the state should be ignored. By default the state bit for the
|
||||||
|
* keyboard layout (XK_SWITCH_MOD) is ignored.
|
||||||
|
*/
|
||||||
|
uint ignoremod = XK_SWITCH_MOD;
|
||||||
|
|
||||||
|
/* key, mask, output, keypad, cursor, crlf */
|
||||||
static Key key[] = {
|
static Key key[] = {
|
||||||
{ XK_BackSpace, XK_NO_MOD, "\177" },
|
/* keysym mask string keypad cursor crlf */
|
||||||
{ XK_Insert, XK_NO_MOD, "\033[2~" },
|
{ XK_KP_Home, ShiftMask, "\033[1;2H", 0, 0, 0},
|
||||||
{ XK_Delete, XK_NO_MOD, "\033[3~" },
|
{ XK_KP_Home, XK_ANY_MOD, "\033[H", 0, -1, 0},
|
||||||
{ XK_Home, XK_NO_MOD, "\033[1~" },
|
{ XK_KP_Home, XK_ANY_MOD, "\033[1~", 0, +1, 0},
|
||||||
{ XK_End, XK_NO_MOD, "\033[4~" },
|
{ XK_KP_Up, XK_ANY_MOD, "\033Ox", +1, 0, 0},
|
||||||
{ XK_Prior, XK_NO_MOD, "\033[5~" },
|
{ XK_KP_Up, XK_ANY_MOD, "\033[A", 0, -1, 0},
|
||||||
{ XK_Next, XK_NO_MOD, "\033[6~" },
|
{ XK_KP_Up, XK_ANY_MOD, "\033OA", 0, +1, 0},
|
||||||
{ XK_F1, XK_NO_MOD, "\033OP" },
|
{ XK_KP_Down, XK_ANY_MOD, "\033Or", +1, 0, 0},
|
||||||
{ XK_F2, XK_NO_MOD, "\033OQ" },
|
{ XK_KP_Down, XK_ANY_MOD, "\033[B", 0, -1, 0},
|
||||||
{ XK_F3, XK_NO_MOD, "\033OR" },
|
{ XK_KP_Down, XK_ANY_MOD, "\033OB", 0, +1, 0},
|
||||||
{ XK_F4, XK_NO_MOD, "\033OS" },
|
{ XK_KP_Left, XK_ANY_MOD, "\033Ot", +1, 0, 0},
|
||||||
{ XK_F5, XK_NO_MOD, "\033[15~" },
|
{ XK_KP_Left, XK_ANY_MOD, "\033[D", 0, -1, 0},
|
||||||
{ XK_F6, XK_NO_MOD, "\033[17~" },
|
{ XK_KP_Left, XK_ANY_MOD, "\033OD", 0, +1, 0},
|
||||||
{ XK_F7, XK_NO_MOD, "\033[18~" },
|
{ XK_KP_Right, XK_ANY_MOD, "\033Ov", +1, 0, 0},
|
||||||
{ XK_F8, XK_NO_MOD, "\033[19~" },
|
{ XK_KP_Right, XK_ANY_MOD, "\033[C", 0, -1, 0},
|
||||||
{ XK_F9, XK_NO_MOD, "\033[20~" },
|
{ XK_KP_Right, XK_ANY_MOD, "\033OC", 0, +1, 0},
|
||||||
{ XK_F10, XK_NO_MOD, "\033[21~" },
|
{ XK_KP_Prior, ShiftMask, "\033[5;2~", 0, 0, 0},
|
||||||
{ XK_F11, XK_NO_MOD, "\033[23~" },
|
{ XK_KP_Prior, XK_ANY_MOD, "\033[5~", 0, 0, 0},
|
||||||
{ XK_F12, XK_NO_MOD, "\033[24~" },
|
{ XK_KP_Begin, XK_ANY_MOD, "\033[E", 0, 0, 0},
|
||||||
|
{ XK_KP_End, ControlMask, "\033[J", -1, 0, 0},
|
||||||
|
{ XK_KP_End, ControlMask, "\033[1;5F", +1, 0, 0},
|
||||||
|
{ XK_KP_End, ShiftMask, "\033[K", -1, 0, 0},
|
||||||
|
{ XK_KP_End, ShiftMask, "\033[1;2F", +1, 0, 0},
|
||||||
|
{ XK_KP_End, XK_ANY_MOD, "\033[4~", 0, 0, 0},
|
||||||
|
{ XK_KP_Next, ShiftMask, "\033[6;2~", 0, 0, 0},
|
||||||
|
{ XK_KP_Next, XK_ANY_MOD, "\033[6~", 0, 0, 0},
|
||||||
|
{ XK_KP_Insert, ShiftMask, "\033[2;2~", +1, 0, 0},
|
||||||
|
{ XK_KP_Insert, ShiftMask, "\033[4l", -1, 0, 0},
|
||||||
|
{ XK_KP_Insert, ControlMask, "\033[L", -1, 0, 0},
|
||||||
|
{ XK_KP_Insert, ControlMask, "\033[2;5~", +1, 0, 0},
|
||||||
|
{ XK_KP_Insert, XK_ANY_MOD, "\033[4h", -1, 0, 0},
|
||||||
|
{ XK_KP_Insert, XK_ANY_MOD, "\033[2~", +1, 0, 0},
|
||||||
|
{ XK_KP_Delete, ControlMask, "\033[2J", -1, 0, 0},
|
||||||
|
{ XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0, 0},
|
||||||
|
{ XK_KP_Delete, ShiftMask, "\033[2K", +1, 0, 0},
|
||||||
|
{ XK_KP_Delete, ShiftMask, "\033[3;2~", -1, 0, 0},
|
||||||
|
{ XK_KP_Delete, XK_ANY_MOD, "\033[P", -1, 0, 0},
|
||||||
|
{ XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0},
|
||||||
|
{ XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0, 0},
|
||||||
|
{ XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0, 0},
|
||||||
|
{ XK_KP_Enter, XK_ANY_MOD, "\033OM", +2, 0, 0},
|
||||||
|
{ XK_KP_Enter, XK_ANY_MOD, "\r", -1, 0, -1},
|
||||||
|
{ XK_KP_Enter, XK_ANY_MOD, "\r\n", -1, 0, +1},
|
||||||
|
{ XK_KP_Subtract, XK_ANY_MOD, "\033Om", +2, 0, 0},
|
||||||
|
{ XK_KP_Decimal, XK_ANY_MOD, "\033On", +2, 0, 0},
|
||||||
|
{ XK_KP_Divide, XK_ANY_MOD, "\033Oo", +2, 0, 0},
|
||||||
|
{ XK_KP_0, XK_ANY_MOD, "\033Op", +2, 0, 0},
|
||||||
|
{ XK_KP_1, XK_ANY_MOD, "\033Oq", +2, 0, 0},
|
||||||
|
{ XK_KP_2, XK_ANY_MOD, "\033Or", +2, 0, 0},
|
||||||
|
{ XK_KP_3, XK_ANY_MOD, "\033Os", +2, 0, 0},
|
||||||
|
{ XK_KP_4, XK_ANY_MOD, "\033Ot", +2, 0, 0},
|
||||||
|
{ XK_KP_5, XK_ANY_MOD, "\033Ou", +2, 0, 0},
|
||||||
|
{ XK_KP_6, XK_ANY_MOD, "\033Ov", +2, 0, 0},
|
||||||
|
{ XK_KP_7, XK_ANY_MOD, "\033Ow", +2, 0, 0},
|
||||||
|
{ XK_KP_8, XK_ANY_MOD, "\033Ox", +2, 0, 0},
|
||||||
|
{ XK_KP_9, XK_ANY_MOD, "\033Oy", +2, 0, 0},
|
||||||
|
{ XK_BackSpace, XK_NO_MOD, "\177", 0, 0, 0},
|
||||||
|
{ XK_Up, ShiftMask, "\033[1;2A", 0, 0, 0},
|
||||||
|
{ XK_Up, ControlMask, "\033[1;5A", 0, 0, 0},
|
||||||
|
{ XK_Up, Mod1Mask, "\033[1;3A", 0, 0, 0},
|
||||||
|
{ XK_Up, XK_ANY_MOD, "\033[A", 0, -1, 0},
|
||||||
|
{ XK_Up, XK_ANY_MOD, "\033OA", 0, +1, 0},
|
||||||
|
{ XK_Down, ShiftMask, "\033[1;2B", 0, 0, 0},
|
||||||
|
{ XK_Down, ControlMask, "\033[1;5B", 0, 0, 0},
|
||||||
|
{ XK_Down, Mod1Mask, "\033[1;3B", 0, 0, 0},
|
||||||
|
{ XK_Down, XK_ANY_MOD, "\033[B", 0, -1, 0},
|
||||||
|
{ XK_Down, XK_ANY_MOD, "\033OB", 0, +1, 0},
|
||||||
|
{ XK_Left, ShiftMask, "\033[1;2D", 0, 0, 0},
|
||||||
|
{ XK_Left, ControlMask, "\033[1;5D", 0, 0, 0},
|
||||||
|
{ XK_Left, Mod1Mask, "\033[1;3D", 0, 0, 0},
|
||||||
|
{ XK_Left, XK_ANY_MOD, "\033[D", 0, -1, 0},
|
||||||
|
{ XK_Left, XK_ANY_MOD, "\033OD", 0, +1, 0},
|
||||||
|
{ XK_Right, ShiftMask, "\033[1;2C", 0, 0, 0},
|
||||||
|
{ XK_Right, ControlMask, "\033[1;5C", 0, 0, 0},
|
||||||
|
{ XK_Right, Mod1Mask, "\033[1;3C", 0, 0, 0},
|
||||||
|
{ XK_Right, XK_ANY_MOD, "\033[C", 0, -1, 0},
|
||||||
|
{ XK_Right, XK_ANY_MOD, "\033OC", 0, +1, 0},
|
||||||
|
{ XK_ISO_Left_Tab, ShiftMask, "\033[Z", 0, 0, 0},
|
||||||
|
{ XK_Return, Mod1Mask, "\033\r", 0, 0, -1},
|
||||||
|
{ XK_Return, Mod1Mask, "\033\r\n", 0, 0, +1},
|
||||||
|
{ XK_Return, XK_ANY_MOD, "\r", 0, 0, -1},
|
||||||
|
{ XK_Return, XK_ANY_MOD, "\r\n", 0, 0, +1},
|
||||||
|
{ XK_Insert, ShiftMask, "\033[4l", -1, 0, 0},
|
||||||
|
{ XK_Insert, ShiftMask, "\033[2;2~", +1, 0, 0},
|
||||||
|
{ XK_Insert, ControlMask, "\033[L", -1, 0, 0},
|
||||||
|
{ XK_Insert, ControlMask, "\033[2;5~", +1, 0, 0},
|
||||||
|
{ XK_Insert, XK_ANY_MOD, "\033[4h", -1, 0, 0},
|
||||||
|
{ XK_Insert, XK_ANY_MOD, "\033[2~", +1, 0, 0},
|
||||||
|
{ XK_Delete, ControlMask, "\033[2J", -1, 0, 0},
|
||||||
|
{ XK_Delete, ControlMask, "\033[3;5~", +1, 0, 0},
|
||||||
|
{ XK_Delete, ShiftMask, "\033[2K", +1, 0, 0},
|
||||||
|
{ XK_Delete, ShiftMask, "\033[3;2~", -1, 0, 0},
|
||||||
|
{ XK_Delete, XK_ANY_MOD, "\033[P", -1, 0, 0},
|
||||||
|
{ XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0},
|
||||||
|
{ XK_Home, ShiftMask, "\033[1;2H", 0, 0, 0},
|
||||||
|
{ XK_Home, XK_ANY_MOD, "\033[H", 0, -1, 0},
|
||||||
|
{ XK_Home, XK_ANY_MOD, "\033[1~", 0, +1, 0},
|
||||||
|
{ XK_End, ControlMask, "\033[J", -1, 0, 0},
|
||||||
|
{ XK_End, ControlMask, "\033[1;5F", +1, 0, 0},
|
||||||
|
{ XK_End, ShiftMask, "\033[K", -1, 0, 0},
|
||||||
|
{ XK_End, ShiftMask, "\033[1;2F", +1, 0, 0},
|
||||||
|
{ XK_End, XK_ANY_MOD, "\033[4~", 0, 0, 0},
|
||||||
|
{ XK_Prior, ControlMask, "\033[5;5~", 0, 0, 0},
|
||||||
|
{ XK_Prior, ShiftMask, "\033[5;2~", 0, 0, 0},
|
||||||
|
{ XK_Prior, XK_NO_MOD, "\033[5~", 0, 0, 0},
|
||||||
|
{ XK_Next, ControlMask, "\033[6;5~", 0, 0, 0},
|
||||||
|
{ XK_Next, ShiftMask, "\033[6;2~", 0, 0, 0},
|
||||||
|
{ XK_Next, XK_ANY_MOD, "\033[6~", 0, 0, 0},
|
||||||
|
{ XK_F1, XK_NO_MOD, "\033OP" , 0, 0, 0},
|
||||||
|
{ XK_F1, /* F13 */ ShiftMask, "\033[1;2P", 0, 0, 0},
|
||||||
|
{ XK_F1, /* F25 */ ControlMask, "\033[1;5P", 0, 0, 0},
|
||||||
|
{ XK_F1, /* F37 */ Mod4Mask, "\033[1;6P", 0, 0, 0},
|
||||||
|
{ XK_F1, /* F49 */ Mod1Mask, "\033[1;3P", 0, 0, 0},
|
||||||
|
{ XK_F1, /* F61 */ Mod3Mask, "\033[1;4P", 0, 0, 0},
|
||||||
|
{ XK_F2, XK_NO_MOD, "\033OQ" , 0, 0, 0},
|
||||||
|
{ XK_F2, /* F14 */ ShiftMask, "\033[1;2Q", 0, 0, 0},
|
||||||
|
{ XK_F2, /* F26 */ ControlMask, "\033[1;5Q", 0, 0, 0},
|
||||||
|
{ XK_F2, /* F38 */ Mod4Mask, "\033[1;6Q", 0, 0, 0},
|
||||||
|
{ XK_F2, /* F50 */ Mod1Mask, "\033[1;3Q", 0, 0, 0},
|
||||||
|
{ XK_F2, /* F62 */ Mod3Mask, "\033[1;4Q", 0, 0, 0},
|
||||||
|
{ XK_F3, XK_NO_MOD, "\033OR" , 0, 0, 0},
|
||||||
|
{ XK_F3, /* F15 */ ShiftMask, "\033[1;2R", 0, 0, 0},
|
||||||
|
{ XK_F3, /* F27 */ ControlMask, "\033[1;5R", 0, 0, 0},
|
||||||
|
{ XK_F3, /* F39 */ Mod4Mask, "\033[1;6R", 0, 0, 0},
|
||||||
|
{ XK_F3, /* F51 */ Mod1Mask, "\033[1;3R", 0, 0, 0},
|
||||||
|
{ XK_F3, /* F63 */ Mod3Mask, "\033[1;4R", 0, 0, 0},
|
||||||
|
{ XK_F4, XK_NO_MOD, "\033OS" , 0, 0, 0},
|
||||||
|
{ XK_F4, /* F16 */ ShiftMask, "\033[1;2S", 0, 0, 0},
|
||||||
|
{ XK_F4, /* F28 */ ShiftMask, "\033[1;5S", 0, 0, 0},
|
||||||
|
{ XK_F4, /* F40 */ Mod4Mask, "\033[1;6S", 0, 0, 0},
|
||||||
|
{ XK_F4, /* F52 */ Mod1Mask, "\033[1;3S", 0, 0, 0},
|
||||||
|
{ XK_F5, XK_NO_MOD, "\033[15~", 0, 0, 0},
|
||||||
|
{ XK_F5, /* F17 */ ShiftMask, "\033[15;2~", 0, 0, 0},
|
||||||
|
{ XK_F5, /* F29 */ ControlMask, "\033[15;5~", 0, 0, 0},
|
||||||
|
{ XK_F5, /* F41 */ Mod4Mask, "\033[15;6~", 0, 0, 0},
|
||||||
|
{ XK_F5, /* F53 */ Mod1Mask, "\033[15;3~", 0, 0, 0},
|
||||||
|
{ XK_F6, XK_NO_MOD, "\033[17~", 0, 0, 0},
|
||||||
|
{ XK_F6, /* F18 */ ShiftMask, "\033[17;2~", 0, 0, 0},
|
||||||
|
{ XK_F6, /* F30 */ ControlMask, "\033[17;5~", 0, 0, 0},
|
||||||
|
{ XK_F6, /* F42 */ Mod4Mask, "\033[17;6~", 0, 0, 0},
|
||||||
|
{ XK_F6, /* F54 */ Mod1Mask, "\033[17;3~", 0, 0, 0},
|
||||||
|
{ XK_F7, XK_NO_MOD, "\033[18~", 0, 0, 0},
|
||||||
|
{ XK_F7, /* F19 */ ShiftMask, "\033[18;2~", 0, 0, 0},
|
||||||
|
{ XK_F7, /* F31 */ ControlMask, "\033[18;5~", 0, 0, 0},
|
||||||
|
{ XK_F7, /* F43 */ Mod4Mask, "\033[18;6~", 0, 0, 0},
|
||||||
|
{ XK_F7, /* F55 */ Mod1Mask, "\033[18;3~", 0, 0, 0},
|
||||||
|
{ XK_F8, XK_NO_MOD, "\033[19~", 0, 0, 0},
|
||||||
|
{ XK_F8, /* F20 */ ShiftMask, "\033[19;2~", 0, 0, 0},
|
||||||
|
{ XK_F8, /* F32 */ ControlMask, "\033[19;5~", 0, 0, 0},
|
||||||
|
{ XK_F8, /* F44 */ Mod4Mask, "\033[19;6~", 0, 0, 0},
|
||||||
|
{ XK_F8, /* F56 */ Mod1Mask, "\033[19;3~", 0, 0, 0},
|
||||||
|
{ XK_F9, XK_NO_MOD, "\033[20~", 0, 0, 0},
|
||||||
|
{ XK_F9, /* F21 */ ShiftMask, "\033[20;2~", 0, 0, 0},
|
||||||
|
{ XK_F9, /* F33 */ ControlMask, "\033[20;5~", 0, 0, 0},
|
||||||
|
{ XK_F9, /* F45 */ Mod4Mask, "\033[20;6~", 0, 0, 0},
|
||||||
|
{ XK_F9, /* F57 */ Mod1Mask, "\033[20;3~", 0, 0, 0},
|
||||||
|
{ XK_F10, XK_NO_MOD, "\033[21~", 0, 0, 0},
|
||||||
|
{ XK_F10, /* F22 */ ShiftMask, "\033[21;2~", 0, 0, 0},
|
||||||
|
{ XK_F10, /* F34 */ ControlMask, "\033[21;5~", 0, 0, 0},
|
||||||
|
{ XK_F10, /* F46 */ Mod4Mask, "\033[21;6~", 0, 0, 0},
|
||||||
|
{ XK_F10, /* F58 */ Mod1Mask, "\033[21;3~", 0, 0, 0},
|
||||||
|
{ XK_F11, XK_NO_MOD, "\033[23~", 0, 0, 0},
|
||||||
|
{ XK_F11, /* F23 */ ShiftMask, "\033[23;2~", 0, 0, 0},
|
||||||
|
{ XK_F11, /* F35 */ ControlMask, "\033[23;5~", 0, 0, 0},
|
||||||
|
{ XK_F11, /* F47 */ Mod4Mask, "\033[23;6~", 0, 0, 0},
|
||||||
|
{ XK_F11, /* F59 */ Mod1Mask, "\033[23;3~", 0, 0, 0},
|
||||||
|
{ XK_F12, XK_NO_MOD, "\033[24~", 0, 0, 0},
|
||||||
|
{ XK_F12, /* F24 */ ShiftMask, "\033[24;2~", 0, 0, 0},
|
||||||
|
{ XK_F12, /* F36 */ ControlMask, "\033[24;5~", 0, 0, 0},
|
||||||
|
{ XK_F12, /* F48 */ Mod4Mask, "\033[24;6~", 0, 0, 0},
|
||||||
|
{ XK_F12, /* F60 */ Mod1Mask, "\033[24;3~", 0, 0, 0},
|
||||||
|
{ XK_F13, XK_NO_MOD, "\033[1;2P", 0, 0, 0},
|
||||||
|
{ XK_F14, XK_NO_MOD, "\033[1;2Q", 0, 0, 0},
|
||||||
|
{ XK_F15, XK_NO_MOD, "\033[1;2R", 0, 0, 0},
|
||||||
|
{ XK_F16, XK_NO_MOD, "\033[1;2S", 0, 0, 0},
|
||||||
|
{ XK_F17, XK_NO_MOD, "\033[15;2~", 0, 0, 0},
|
||||||
|
{ XK_F18, XK_NO_MOD, "\033[17;2~", 0, 0, 0},
|
||||||
|
{ XK_F19, XK_NO_MOD, "\033[18;2~", 0, 0, 0},
|
||||||
|
{ XK_F20, XK_NO_MOD, "\033[19;2~", 0, 0, 0},
|
||||||
|
{ XK_F21, XK_NO_MOD, "\033[20;2~", 0, 0, 0},
|
||||||
|
{ XK_F22, XK_NO_MOD, "\033[21;2~", 0, 0, 0},
|
||||||
|
{ XK_F23, XK_NO_MOD, "\033[23;2~", 0, 0, 0},
|
||||||
|
{ XK_F24, XK_NO_MOD, "\033[24;2~", 0, 0, 0},
|
||||||
|
{ XK_F25, XK_NO_MOD, "\033[1;5P", 0, 0, 0},
|
||||||
|
{ XK_F26, XK_NO_MOD, "\033[1;5Q", 0, 0, 0},
|
||||||
|
{ XK_F27, XK_NO_MOD, "\033[1;5R", 0, 0, 0},
|
||||||
|
{ XK_F28, XK_NO_MOD, "\033[1;5S", 0, 0, 0},
|
||||||
|
{ XK_F29, XK_NO_MOD, "\033[15;5~", 0, 0, 0},
|
||||||
|
{ XK_F30, XK_NO_MOD, "\033[17;5~", 0, 0, 0},
|
||||||
|
{ XK_F31, XK_NO_MOD, "\033[18;5~", 0, 0, 0},
|
||||||
|
{ XK_F32, XK_NO_MOD, "\033[19;5~", 0, 0, 0},
|
||||||
|
{ XK_F33, XK_NO_MOD, "\033[20;5~", 0, 0, 0},
|
||||||
|
{ XK_F34, XK_NO_MOD, "\033[21;5~", 0, 0, 0},
|
||||||
|
{ XK_F35, XK_NO_MOD, "\033[23;5~", 0, 0, 0},
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Set TERM to this */
|
/*
|
||||||
#define TNAME "st-256color"
|
* Selection types' masks.
|
||||||
|
* Use the same masks as usual.
|
||||||
|
* Button1Mask is always unset, to make masks match between ButtonPress.
|
||||||
|
* ButtonRelease and MotionNotify.
|
||||||
|
* If no match is found, regular selection is used.
|
||||||
|
*/
|
||||||
|
|
||||||
/* Line drawing characters (sometime specific to each font...) */
|
static uint selmasks[] = {
|
||||||
static char gfx[] = {
|
[SEL_RECTANGULAR] = Mod1Mask,
|
||||||
['f'] = 'o',
|
|
||||||
['g'] = '+',
|
|
||||||
['i'] = '#',
|
|
||||||
[255] = 0,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* double-click timeout (in milliseconds) between clicks for selection */
|
|
||||||
#define DOUBLECLICK_TIMEOUT 300
|
|
||||||
#define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT)
|
|
||||||
|
|
||||||
#define TAB 8
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# st version
|
# st version
|
||||||
VERSION = 0.2.1
|
VERSION = 0.4
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
@@ -11,13 +11,18 @@ X11INC = /usr/X11R6/include
|
|||||||
X11LIB = /usr/X11R6/lib
|
X11LIB = /usr/X11R6/lib
|
||||||
|
|
||||||
# includes and libs
|
# includes and libs
|
||||||
INCS = -I. -I/usr/include -I${X11INC}
|
INCS = -I. -I/usr/include -I${X11INC} \
|
||||||
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil
|
$(shell pkg-config --cflags fontconfig) \
|
||||||
|
$(shell pkg-config --cflags freetype2)
|
||||||
|
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil -lXext -lXft \
|
||||||
|
$(shell pkg-config --libs fontconfig) \
|
||||||
|
$(shell pkg-config --libs freetype2)
|
||||||
|
|
||||||
# flags
|
# flags
|
||||||
CPPFLAGS = -DVERSION=\"${VERSION}\"
|
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE -D_XOPEN_SOURCE=600
|
||||||
CFLAGS += -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
CFLAGS += -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os ${INCS} ${CPPFLAGS}
|
||||||
LDFLAGS += -s ${LIBS}
|
LDFLAGS += -g ${LIBS}
|
||||||
|
|
||||||
# compiler and linker
|
# compiler and linker
|
||||||
CC ?= cc
|
CC ?= cc
|
||||||
|
|
||||||
@@ -5,6 +5,12 @@ st \- simple terminal
|
|||||||
.B st
|
.B st
|
||||||
.RB [ \-c
|
.RB [ \-c
|
||||||
.IR class ]
|
.IR class ]
|
||||||
|
.RB [ \-f
|
||||||
|
.IR font ]
|
||||||
|
.RB [ \-g
|
||||||
|
.IR geometry ]
|
||||||
|
.RB [ \-o
|
||||||
|
.IR file ]
|
||||||
.RB [ \-t
|
.RB [ \-t
|
||||||
.IR title ]
|
.IR title ]
|
||||||
.RB [ \-w
|
.RB [ \-w
|
||||||
@@ -17,12 +23,26 @@ st \- simple terminal
|
|||||||
is a simple terminal emulator.
|
is a simple terminal emulator.
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.TP
|
||||||
.BI \-t " title"
|
|
||||||
defines the window title (default 'st').
|
|
||||||
.TP
|
|
||||||
.BI \-c " class"
|
.BI \-c " class"
|
||||||
defines the window class (default $TERM).
|
defines the window class (default $TERM).
|
||||||
.TP
|
.TP
|
||||||
|
.BI \-f " font"
|
||||||
|
defines the
|
||||||
|
.I font
|
||||||
|
to use when st is run.
|
||||||
|
.TP
|
||||||
|
.BI \-g " geometry"
|
||||||
|
defines the X11 geometry string, which will fixate the height and width of st.
|
||||||
|
.TP
|
||||||
|
.BI \-o " file"
|
||||||
|
writes all the I/O to
|
||||||
|
.I file.
|
||||||
|
This feature is useful when recording st sessions. A value of "-" means
|
||||||
|
standard output.
|
||||||
|
.TP
|
||||||
|
.BI \-t " title"
|
||||||
|
defines the window title (default 'st').
|
||||||
|
.TP
|
||||||
.BI \-w " windowid"
|
.BI \-w " windowid"
|
||||||
embeds st within the window identified by
|
embeds st within the window identified by
|
||||||
.I windowid
|
.I windowid
|
||||||
@@ -36,3 +56,16 @@ st executes
|
|||||||
instead of the shell. If this is used it
|
instead of the shell. If this is used it
|
||||||
.B must be the last option
|
.B must be the last option
|
||||||
on the command line, as in xterm / rxvt.
|
on the command line, as in xterm / rxvt.
|
||||||
|
.SH CUSTOMIZATION
|
||||||
|
.B st
|
||||||
|
can be customized by creating a custom config.h and (re)compiling the source
|
||||||
|
code. This keeps it fast, secure and simple.
|
||||||
|
.SH AUTHORS
|
||||||
|
See the LICENSE file for the authors.
|
||||||
|
.SH LICENSE
|
||||||
|
See the LICENSE file for the terms of redistribution.
|
||||||
|
.SH SEE ALSO
|
||||||
|
.BR tabbed (1)
|
||||||
|
.SH BUGS
|
||||||
|
See the TODO file in the distribution.
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
st| simpleterm,
|
st| simpleterm,
|
||||||
acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
|
acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
|
||||||
am,
|
am,
|
||||||
# bce,
|
bce,
|
||||||
bel=^G,
|
bel=^G,
|
||||||
# blink=\E[5m,
|
# blink=\E[5m,
|
||||||
bold=\E[1m,
|
bold=\E[1m,
|
||||||
@@ -33,6 +33,7 @@ st| simpleterm,
|
|||||||
ed=\E[J,
|
ed=\E[J,
|
||||||
el=\E[K,
|
el=\E[K,
|
||||||
el1=\E[1K,
|
el1=\E[1K,
|
||||||
|
enacs=\E)0,
|
||||||
flash=\E[?5h\E[?5l,
|
flash=\E[?5h\E[?5l,
|
||||||
fsl=^G,
|
fsl=^G,
|
||||||
home=\E[H,
|
home=\E[H,
|
||||||
@@ -46,22 +47,37 @@ st| simpleterm,
|
|||||||
ind=^J,
|
ind=^J,
|
||||||
indn=\E[%p1%dS,
|
indn=\E[%p1%dS,
|
||||||
invis=\E[8m,
|
invis=\E[8m,
|
||||||
|
is2=\E[4l\E>,
|
||||||
it#8,
|
it#8,
|
||||||
|
kel=\E[1;2F,
|
||||||
|
ked=\E[1;5F,
|
||||||
|
ka1=\E[1~,
|
||||||
|
ka3=\E[5~,
|
||||||
|
kc1=\E[4~,
|
||||||
|
kc3=\E[6~,
|
||||||
kbs=\177,
|
kbs=\177,
|
||||||
kcub1=\E[D,
|
kcbt=\E[Z,
|
||||||
kcud1=\E[B,
|
kb2=\EOu,
|
||||||
kcuf1=\E[C,
|
kcub1=\EOD,
|
||||||
kcuu1=\E[A,
|
kcud1=\EOB,
|
||||||
kLFT=\E[d,
|
kcuf1=\EOC,
|
||||||
kRIT=\E[c,
|
kcuu1=\EOA,
|
||||||
kind=\E[a,
|
kDC=\E[3;2~,
|
||||||
kri=\E[b,
|
kent=\EOM,
|
||||||
|
kEND=\E[1;2F,
|
||||||
|
kIC=\E[2;2~,
|
||||||
|
kNXT=\E[6;2~,
|
||||||
|
kPRV=\E[5;2~,
|
||||||
|
kHOM=\E[1;2H,
|
||||||
|
kLFT=\E[1;2D,
|
||||||
|
kRIT=\E[1;2C,
|
||||||
|
kind=\E[1;2B,
|
||||||
|
kri=\E[1;2A,
|
||||||
|
kclr=\E[3;5~,
|
||||||
|
kdl1=\E[3;2~,
|
||||||
kdch1=\E[3~,
|
kdch1=\E[3~,
|
||||||
kich1=\E[2~,
|
kich1=\E[2~,
|
||||||
kend=\E[4~,
|
kend=\E[4~,
|
||||||
kf10=\E[21~,
|
|
||||||
kf11=\E[23~,
|
|
||||||
kf12=\E[24~,
|
|
||||||
kf1=\EOP,
|
kf1=\EOP,
|
||||||
kf2=\EOQ,
|
kf2=\EOQ,
|
||||||
kf3=\EOR,
|
kf3=\EOR,
|
||||||
@@ -71,7 +87,64 @@ st| simpleterm,
|
|||||||
kf7=\E[18~,
|
kf7=\E[18~,
|
||||||
kf8=\E[19~,
|
kf8=\E[19~,
|
||||||
kf9=\E[20~,
|
kf9=\E[20~,
|
||||||
|
kf10=\E[21~,
|
||||||
|
kf11=\E[23~,
|
||||||
|
kf12=\E[24~,
|
||||||
|
kf13=\E[1;2P,
|
||||||
|
kf14=\E[1;2Q,
|
||||||
|
kf15=\E[1;2R,
|
||||||
|
kf16=\E[1;2S,
|
||||||
|
kf17=\E[15;2~,
|
||||||
|
kf18=\E[17;2~,
|
||||||
|
kf19=\E[18;2~,
|
||||||
|
kf20=\E[19;2~,
|
||||||
|
kf21=\E[20;2~,
|
||||||
|
kf22=\E[21;2~,
|
||||||
|
kf23=\E[23;2~,
|
||||||
|
kf24=\E[24;2~,
|
||||||
|
kf25=\E[1;5P,
|
||||||
|
kf26=\E[1;5Q,
|
||||||
|
kf27=\E[1;5R,
|
||||||
|
kf28=\E[1;5S,
|
||||||
|
kf29=\E[15;5~,
|
||||||
|
kf30=\E[17;5~,
|
||||||
|
kf31=\E[18;5~,
|
||||||
|
kf32=\E[19;5~,
|
||||||
|
kf33=\E[20;5~,
|
||||||
|
kf34=\E[21;5~,
|
||||||
|
kf35=\E[23;5~,
|
||||||
|
kf36=\E[24;5~,
|
||||||
|
kf37=\E[1;6P,
|
||||||
|
kf38=\E[1;6Q,
|
||||||
|
kf39=\E[1;6R,
|
||||||
|
kf40=\E[1;6S,
|
||||||
|
kf41=\E[15;6~,
|
||||||
|
kf42=\E[17;6~,
|
||||||
|
kf43=\E[18;6~,
|
||||||
|
kf44=\E[19;6~,
|
||||||
|
kf45=\E[20;6~,
|
||||||
|
kf46=\E[21;6~,
|
||||||
|
kf47=\E[23;6~,
|
||||||
|
kf48=\E[24;6~,
|
||||||
|
kf49=\E[1;3P,
|
||||||
|
kf50=\E[1;3Q,
|
||||||
|
kf51=\E[1;3R,
|
||||||
|
kf52=\E[1;3S,
|
||||||
|
kf53=\E[15;3~,
|
||||||
|
kf54=\E[17;3~,
|
||||||
|
kf55=\E[18;3~,
|
||||||
|
kf56=\E[19;3~,
|
||||||
|
kf57=\E[20;3~,
|
||||||
|
kf58=\E[21;3~,
|
||||||
|
kf59=\E[23;3~,
|
||||||
|
kf60=\E[24;3~,
|
||||||
|
kf61=\E[1;4P,
|
||||||
|
kf62=\E[1;4Q,
|
||||||
|
kf63=\E[1;4R,
|
||||||
khome=\E[1~,
|
khome=\E[1~,
|
||||||
|
kil1=\E[2;5~,
|
||||||
|
krmir=\E[2;2~,
|
||||||
|
kich1=\E[2~,
|
||||||
knp=\E[6~,
|
knp=\E[6~,
|
||||||
kmous=\E[M,
|
kmous=\E[M,
|
||||||
kpp=\E[5~,
|
kpp=\E[5~,
|
||||||
@@ -84,23 +157,35 @@ st| simpleterm,
|
|||||||
rc=\E8,
|
rc=\E8,
|
||||||
rev=\E[7m,
|
rev=\E[7m,
|
||||||
ri=\EM,
|
ri=\EM,
|
||||||
|
ritm=\E[23m,
|
||||||
rmacs=\E(B,
|
rmacs=\E(B,
|
||||||
rmcup=\E[?1049l,
|
rmcup=\E[?1049l,
|
||||||
rmso=\E[m,
|
rmir=\E[4l,
|
||||||
|
rmkx=\E[?1l\E>,
|
||||||
|
rmso=\E[27m,
|
||||||
rmul=\E[m,
|
rmul=\E[m,
|
||||||
|
rs1=\Ec,
|
||||||
|
rs2=\E[4l\E>,
|
||||||
sc=\E7,
|
sc=\E7,
|
||||||
setab=\E[4%p1%dm,
|
setab=\E[4%p1%dm,
|
||||||
setaf=\E[3%p1%dm,
|
setaf=\E[3%p1%dm,
|
||||||
|
setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
|
||||||
|
setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
|
||||||
sgr0=\E[0m,
|
sgr0=\E[0m,
|
||||||
sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
|
sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
|
||||||
|
sitm=\E[3m,
|
||||||
smacs=\E(0,
|
smacs=\E(0,
|
||||||
smcup=\E[?1049h,
|
smcup=\E[?1049h,
|
||||||
|
smir=\E[4h,
|
||||||
|
smkx=\E[?1h\E=,
|
||||||
smso=\E[7m,
|
smso=\E[7m,
|
||||||
smul=\E[4m,
|
smul=\E[4m,
|
||||||
tbc=\E[2g,
|
tbc=\E[3g,
|
||||||
tsl=\E]0;,
|
tsl=\E]0;,
|
||||||
ul,
|
ul,
|
||||||
xenl,
|
xenl,
|
||||||
|
vpa=\E[%i%p1%dd,
|
||||||
|
|
||||||
|
|
||||||
st-256color| simpleterm with 256 colors,
|
st-256color| simpleterm with 256 colors,
|
||||||
use=st,
|
use=st,
|
||||||
|
|||||||
Reference in new issue
Block a user