annotate runtime/termcap @ 33897:7777043c9393 v9.0.2154

patch 9.0.2154: The option[] array is not sorted Commit: https://github.com/vim/vim/commit/f48558e10a08a1a483e25ef847bbceeac6b44561 Author: zeertzjq <zeertzjq@outlook.com> Date: Fri Dec 8 21:34:31 2023 +0100 patch 9.0.2154: The option[] array is not sorted Problem: The options[] array is not sorted alphabetically. Solution: Sort it alphabetically. Add a test. Avoid unnecessary loop iterations in findoption(). closes: #13648 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Dec 2023 15:16:32 +0100
parents 4027cefc2aab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 # Demonstration of a termcap file (for the Amiga and Archimedes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 #
32770
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
4 # Maintainer: The Vim Project <https://github.com/vim/vim>
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
5 # Last Change: 2023 Aug 10
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
6 # Former Maintainer: Bram Moolenaar <Bram@vim.org>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 sx|ansi|any ansi terminal with pessimistic assumptions:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :co#80:li#24:cl=50\E[;H\E[2J:bs:am:cm=\E[%i%d;%dH:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :nd=\E[C:up=\E[A:ce=\E[K:ho=\E[H:pt:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 Mu|sun|Sun Microsystems Workstation console:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :am:bs:km:mi:ms:pt:li#34:co#80:cl=^L:cm=\E[%i%d;%dH:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :ce=\E[K:cd=\E[J:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:rs=\E[s:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :md=\E[1m:mr=\E[7m:me=\E[m:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :al=\E[L:dl=\E[M:im=:ei=:ic=\E[@:dc=\E[P:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :up=\E[A:nd=\E[C:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 :k1=\E[224z:k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :k6=\E[229z:k7=\E[230z:k8=\E[231z:k9=\E[232z:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 M-|sun-e|sun-nic|sune|Sun Microsystems Workstation without insert character:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 :ic@:im@:ei@:tc=sun:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 Mu|sun-s|Sun Microsystems Workstation window with status line:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 :hs:ts=\E]l:fs=\E\\:ds=\E]l\E\\:tc=sun:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 Mu|sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 :hs:ts=\E]l:fs=\E\\:ds=\E]l\E\\:tc=sun-e:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 M0|sun-48|Sun 48-line window:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 :li#48:co#80:tc=sun:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 M1|sun-34|Sun 34-line window:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 :li#34:co#80:tc=sun:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 M2|sun-24|Sun 24-line window:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 :li#24:co#80:tc=sun:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 M3|sun-17|Sun 17-line window:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 :li#17:co#80:tc=sun:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 v9|925a|tvi925a|TeleVideo Model 925:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 :al=\EE:am:bs:bt=\EI:bw:cd=\EY:ce=\ET:cl=^Z:cm=\E=%+ %+ :co#80:dc=\EW:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 :dl=\ER:do=^V:ei=:ic=\EQ:if=/usr/share/lib/tabset/std:im=:kb=^H:kd=^V:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 :kh=^^:kl=^H:kn#12:kr=^L:ku=^K:li#24:nd=^L:pt:se=\EG0:sg#1:so=\EG4:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 :ue=\EG0:ug#1:ul:up=^K:us=\EG8:is=\El\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 :vb=\Eb\200\200\200\200\200\200\200\200\200\200\200\200\200\200\Ed:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 :ve=\E.4:vs=\E.2:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 d0|vt100|vt100-am|vt100am|dec vt100:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 :do=^J:co#80:li#24:cl=50\E[;H\E[2J:sf=5\ED:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 :le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 :rf=/usr/share/lib/tabset/vt100:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=5\EM:vt#3:xn:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 # Amiga termcap by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 AA|amiga|Amiga ANSI:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 :co#80:li#25:am:do=\E[B:ce=\E[K:cd=\E[J:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 :cl=\014:ku=\233A:kd=\233B:kl=\233D:kr=\233C:kb=^H:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 :#4=\233 A:%i=\233 @:%1=\233?~:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 :k1=\2330~:k2=\2331~:k3=\2332~:k4=\2333~:k5=\2334~:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 :k6=\2335~:k7=\2336~:k8=\2337~:k9=\2338~:k;=\2339~:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 :F1=\23310~:F2=\23311~:F3=\23312~:F4=\23313~:F5=\23314~:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 :F6=\23315~:F7=\23316~:F8=\23317~:F9=\23318~:FA=\23319~:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 :al=\E[L:AL=\E[%dL:dl=\E[M:DL=\E[%dM:le=^H:cm=\E[%i%d;%dH:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 :nd=\E[C:RI=\E[%dC:up=\E[A:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 :ce=\E[K:ho=\E[H:dc=\E[P:ic=\E[@:vi=\E[0 p:ve=\E[1 p:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 :so=\E[2m:se=\E[m:us=\E[4m:ue=\E[m:mr=\E[7m:mb=\E[7;2m:me=\E[m:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 # Acorn VDU
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 # For non-green text, change the ^B in the :cl= line to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 # your favourite control code.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 a0|acorn0|Acorn VDU Driver Mode 0:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 :cl=^V\200^S^A^B\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 :is=^C^F^D^O^V\200^S^A^B\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 :tc=acorn_generic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 ag|acorn_generic|Acorn Generic VDU driver:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 :li#32:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 :co#80:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 :am:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 :bs:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 :bw:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 :bl=^G:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 :ce=^W^H^E^F\200\200\200\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 :cl=^L:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 :cm=^_%r%.%.:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 :ho=^^:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 :le=\010:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 :cr=\015:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 :me=^W^Q^E\200\200\200\200\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 :mr=^W^Q^E\200\200\200\200\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 :sb=^W^G^A^B\200\200\200\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 :se=^W^Q^E\200\200\200\200\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 :sf=^W^G^A^C\200\200\200\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 :so=^W^Q^E\200\200\200\200\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 :sr=^W^G^A^B\200\200\200\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 :up=^K:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 :vb=^R^C^G^Y^D\200\200\200\200^Ye\200^E\200^D^Ye\200\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 :vi=^W^A\200\200\200\200\200\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 :ve=^W^A^A\200\200\200\200\200\200\200:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 :ku=\317:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 :kd=\316:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 :kl=\314:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 :kr=\315:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 :kP=\337:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 :kN=\336:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 :kh=\036:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 :kH=\313:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 :su=\337:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 :sd=\336:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 :#4=\334:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 :%i=\335:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 :k1=\301:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 :k2=\302:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 :k3=\303:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 :k4=\304:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 :k5=\305:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 :k6=\306:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 :k7=\307:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 :k8=\310:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 :k9=\311:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 :F1=\321:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 :F2=\322:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 :F3=\323:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 :F4=\324:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 :F5=\325:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 :F6=\326:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 :F7=\327:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 :F8=\330:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 :F9=\331
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 # END OF TERMCAP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 #