-/* Termcap he say:
-
-VT102:
-
-vt102|dec vt102:\
- :mi:\
- :al=\E[L:dc=\E[P:dl=\E[M:ei=\E[4l:im=\E[4h:tc=vt100:
-
-vt100|vt100-am|dec vt100 (w/advanced video):\
- :am:bs:ms:xn:xo:\
- :co#80:it#8:li#24:vt#3:\
- :DO=\E[%dB:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:\
- :UP=\E[%dA:\
- :ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
- :ae=^O:as=^N:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
- :cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:do=^J:\
- :eA=\E(B\E)0:ho=\E[H:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:\
- :kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:\
- :me=\E[m\017:mr=\E[7m:nd=\E[C:rc=\E8:\
- :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:sc=\E7:se=\E[m:\
- :sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:ue=\E[m:up=\E[A:\
- :us=\E[4m:tc=vt100+fnkeys:
-
-vt100+fnkeys|dec vt100 numeric keypad:\
- :k0=\EOy:k5=\EOt:k6=\EOu:k7=\EOv:k8=\EOl:k9=\EOw:k;=\EOx:\
- :tc=vt100+pfkeys:
-
-vt100+pfkeys|dec vt100 numeric keypad:\
- :@8=\EOM:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:tc=vt100+keypad:
-
-vt100+keypad|dec vt100 numeric keypad no fkeys:\
- :K1=\EOq:K2=\EOr:K3=\EOs:K4=\EOp:K5=\EOn:
-
-*/
-
-/*
-so the parser needs to be able to at least do
-CTRL-G
-CTRL-H
-CTRL-I
-CTRL-J
-CTRL-M
-CTRL-N
-
-CTRL-O
-ESC7
-ESC8
-ESCH
-ESCM
-ESC>
-
-ESC[%dA
-ESC[%dB
-ESC[%dC
-ESC[%dD
-ESC[H
-ESC[%d;%dH
-ESC[J
-ESC[K
-ESC[1K
-ESC[L
-ESC[M
-ESC[P
-
-ESC[3g
-ESC[4h
-ESC[4l
-ESC[m
-ESC[1m
-ESC[4m
-ESC[5m
-ESC[7m
-ESC[%d;%dr
-
-
-ESC[?3l
-ESC[?4l
-ESC[?5l
-ESC[?7h
-ESC[?7h
-ESC[?7l
-ESC[?8h
-
-ESC(B
-ESC)0
-
-
-TODO:
-
-ESC(B
-ESC)0
-
-CTRL-O
-
-ANSI:
-
-
-
-ansi|ansi/pc-term compatible with color:\
- :u6=\E[%i%d;%dR:u7=\E[6n:u9=\E[c:tc=ecma+color:\
- :tc=klone+sgr:tc=ansi-m:
-ansi-m|ansi-mono|ANSI X3.64-1979 terminal with ANSI.SYS compatible attributes:\
- :5i:\
- :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
- :LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
- :cb=\E[1K:ch=\E[%i%dG:ct=\E[2g:cv=\E[%i%dd:ec=\E[%dX:ei=:\
- :im=:kB=\E[Z:kI=\E[L:kb=^H:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:\
- :nw=\r\E[S:pf=\E[4i:po=\E[5i:s0=\E(B:s1=\E)B:s2=\E*B:\
- :s3=\E+B:ta=\E[I:tc=pcansi-m:
-pcansi-m|pcansi-mono|ibm-pc terminal programs claiming to be ansi (mono mode):\
- :am:bs:mi:ms:\
- :co#80:it#8:li#24:\
- :al=\E[L:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
- :cm=\E[%i%d;%dH:cr=^M:ct=\E[2g:dc=\E[P:dl=\E[M:do=\E[B:\
- :ho=\E[H:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\
- :le=\E[D:nd=\E[C:sf=^J:st=\EH:ta=^I:up=\E[A:\
- :tc=klone+sgr-dumb:
-klone+sgr-dumb|attribute control for ansi.sys displays (no ESC [ 11 m):\
- :as=\E[12m:mb=\E[5m:md=\E[1m:me=\E[0;10m:mk=\E[8m:\
- :mr=\E[7m:se=\E[m:so=\E[7m:ue=\E[m:us=\E[4m:tc=klone+acs:
-klone+acs|alternate character set for ansi.sys displays:\
- :ac=+\020,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376:\
- :ae=\E[10m:as=\E[11m:
-ecma+color|color control for ECMA-48-compatible terminals:\
- :Co#8:NC#3:pa#64:\
- :AB=\E[4%dm:AF=\E[3%dm:op=\E[39;49m:
-
-
-Ignoreing ones in the VT102 spec
-
-ESC[%d@
-ESC[I
-ESC[....R
-ESC[%dS
-ESC[%dT
-ESC[X
-ESC[Z
-
-ESC[c
-*ESC[%db
-ESC[....d
-ESC[....f
-ESC[2g
-ESC[4i
-ESC[5i
-ESC[6n
-
-ESC(B
-ESC)B
-ESC*B
-ESC+B
-
-
-*/
+/*
+ * Termcap he say:
+ *
+ * VT102:
+ *
+ * vt102|dec vt102:\ :mi:\
+ * :al=\E[L:dc=\E[P:dl=\E[M:ei=\E[4l:im=\E[4h:tc=vt100:
+ *
+ * vt100|vt100-am|dec vt100 (w/advanced video):\ :am:bs:ms:xn:xo:\
+ * :co#80:it#8:li#24:vt#3:\
+ * :DO=\E[%dB:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:\ :UP=\E[%dA:\
+ * :ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
+ * :ae=^O:as=^N:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
+ * :cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:do=^J:\
+ * :eA=\E(B\E)0:ho=\E[H:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:\
+ * :kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:\
+ * :me=\E[m\017:mr=\E[7m:nd=\E[C:rc=\E8:\
+ * :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:sc=\E7:se=\E[m:\
+ * :sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:ue=\E[m:up=\E[A:\
+ * :us=\E[4m:tc=vt100+fnkeys:
+ *
+ * vt100+fnkeys|dec vt100 numeric keypad:\
+ * :k0=\EOy:k5=\EOt:k6=\EOu:k7=\EOv:k8=\EOl:k9=\EOw:k;=\EOx:\
+ * :tc=vt100+pfkeys:
+ *
+ * vt100+pfkeys|dec vt100 numeric keypad:\
+ * :@8=\EOM:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:tc=vt100+keypad:
+ *
+ * vt100+keypad|dec vt100 numeric keypad no fkeys:\
+ * :K1=\EOq:K2=\EOr:K3=\EOs:K4=\EOp:K5=\EOn:
+ *
+ */
+
+/*
+ * so the parser needs to be able to at least do CTRL-G CTRL-H CTRL-I
+ * CTRL-J CTRL-M CTRL-N
+ *
+ * CTRL-O ESC7 ESC8 ESCH ESCM ESC>
+ *
+ * ESC[%dA ESC[%dB ESC[%dC ESC[%dD ESC[H ESC[%d;%dH ESC[J ESC[K ESC[1K
+ * ESC[L ESC[M ESC[P
+ *
+ * ESC[3g ESC[4h ESC[4l ESC[m ESC[1m ESC[4m ESC[5m ESC[7m ESC[%d;%dr
+ *
+ *
+ * ESC[?3l ESC[?4l ESC[?5l ESC[?7h ESC[?7h ESC[?7l ESC[?8h
+ *
+ * ESC(B ESC)0
+ *
+ *
+ * TODO:
+ *
+ * ESC(B ESC)0
+ *
+ * CTRL-O
+ *
+ * ANSI:
+ *
+ *
+ *
+ * ansi|ansi/pc-term compatible with color:\
+ * :u6=\E[%i%d;%dR:u7=\E[6n:u9=\E[c:tc=ecma+color:\
+ * :tc=klone+sgr:tc=ansi-m: ansi-m|ansi-mono|ANSI X3.64-1979 terminal with
+ * ANSI.SYS compatible attributes:\ :5i:\
+ * :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
+ * :LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
+ * :cb=\E[1K:ch=\E[%i%dG:ct=\E[2g:cv=\E[%i%dd:ec=\E[%dX:ei=:\
+ * :im=:kB=\E[Z:kI=\E[L:kb=^H:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:\
+ * :nw=\r\E[S:pf=\E[4i:po=\E[5i:s0=\E(B:s1=\E)B:s2=\E*B:\
+ * :s3=\E+B:ta=\E[I:tc=pcansi-m: pcansi-m|pcansi-mono|ibm-pc terminal
+ * programs claiming to be ansi (mono mode):\ :am:bs:mi:ms:\
+ * :co#80:it#8:li#24:\
+ * :al=\E[L:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
+ * :cm=\E[%i%d;%dH:cr=^M:ct=\E[2g:dc=\E[P:dl=\E[M:do=\E[B:\
+ * :ho=\E[H:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\
+ * :le=\E[D:nd=\E[C:sf=^J:st=\EH:ta=^I:up=\E[A:\ :tc=klone+sgr-dumb:
+ * klone+sgr-dumb|attribute control for ansi.sys displays (no ESC [ 11
+ * m):\ :as=\E[12m:mb=\E[5m:md=\E[1m:me=\E[0;10m:mk=\E[8m:\
+ * :mr=\E[7m:se=\E[m:so=\E[7m:ue=\E[m:us=\E[4m:tc=klone+acs:
+ * klone+acs|alternate character set for ansi.sys displays:\
+ * :ac=+\020,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376:\
+ * :ae=\E[10m:as=\E[11m: ecma+color|color control for ECMA-48-compatible terminals:\ :Co#8:NC#3:pa#64:\ :AB=\E[4%dm:AF=\E[3%dm:op=\E[39;49m:
+ *
+ *
+ * Ignoreing ones in the VT102 spec
+ *
+ * ESC[%d@ ESC[I ESC[....R ESC[%dS ESC[%dT ESC[X ESC[Z
+ *
+ * ESC[c *ESC[%db ESC[....d ESC[....f ESC[2g ESC[4i ESC[5i ESC[6n
+ *
+ * ESC(B ESC)B ESC*B ESC+B
+ *
+ *
+ */