Tektable.c 20 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348
  1. /* These are parse tables for a Tektronix 4014, almost identical to the
  2. parse tables in the source to xterm(1), which are dated 86/12/01. They
  3. are used by tek2plot.
  4. The only difference between these tables and the 1986 version is the
  5. inclusion of a CASE_ANSI state, which is used for parsing the ANSI-style
  6. escape sequences which some Tektronix emulators support. */
  7. /* States here that correspond to the five basic Tektronix 4014 plotting
  8. modes are:
  9. ALPHA (ALP)
  10. PLOT (PLT)
  11. POINT (PT)
  12. SPECIAL POINT PLOT (SPT)
  13. INCREMENTAL PLOT (IPT)
  14. Other states corresponding to internal Tektronix states are:
  15. BES BYP ESC
  16. Additional states, namely (in alphabetical order)
  17. ANSI APL ASCII BEAM_VEC BEL BS CHAR_SIZE COPY CR CURSTATE GIN IGNORE
  18. IPL_POINT LF OSC PAGE PENDOWN PENUP PLT_VEC PRINT PT_POINT REPORT SP
  19. SPT_POINT TAB UP VT_MODE
  20. are simply advisory to the parser. */
  21. #include "Tekparse.h"
  22. /* States corresponding to the five basic Tektronix plotting modes */
  23. /* transition table for ALPHA mode (CASE_ALP_STATE) */
  24. int Talptable[] = {
  25. /* NUL SOH STX ETX */
  26. CASE_IGNORE,
  27. CASE_IGNORE,
  28. CASE_IGNORE,
  29. CASE_IGNORE,
  30. /* EOT ENQ ACK BEL */
  31. CASE_IGNORE,
  32. CASE_IGNORE,
  33. CASE_IGNORE,
  34. CASE_BEL,
  35. /* BS HT NL VT */
  36. CASE_BS,
  37. CASE_TAB,
  38. CASE_LF,
  39. CASE_UP,
  40. /* NP CR SO SI */
  41. CASE_IGNORE,
  42. CASE_CR,
  43. CASE_IGNORE,
  44. CASE_IGNORE,
  45. /* DLE DC1 DC2 DC3 */
  46. CASE_IGNORE,
  47. CASE_IGNORE,
  48. CASE_IGNORE,
  49. CASE_IGNORE,
  50. /* DC4 NAK SYN ETB */
  51. CASE_IGNORE,
  52. CASE_IGNORE,
  53. CASE_IGNORE,
  54. CASE_IGNORE,
  55. /* CAN EM SUB ESC */
  56. CASE_IGNORE,
  57. CASE_IGNORE,
  58. CASE_IGNORE,
  59. CASE_ESC_STATE,
  60. /* FS GS RS US */
  61. CASE_PT_STATE,
  62. CASE_PLT_STATE,
  63. CASE_IPL_STATE,
  64. CASE_ALP_STATE,
  65. /* SP ! " # */
  66. CASE_SP,
  67. CASE_PRINT,
  68. CASE_PRINT,
  69. CASE_PRINT,
  70. /* $ % & ' */
  71. CASE_PRINT,
  72. CASE_PRINT,
  73. CASE_PRINT,
  74. CASE_PRINT,
  75. /* ( ) * + */
  76. CASE_PRINT,
  77. CASE_PRINT,
  78. CASE_PRINT,
  79. CASE_PRINT,
  80. /* , - . / */
  81. CASE_PRINT,
  82. CASE_PRINT,
  83. CASE_PRINT,
  84. CASE_PRINT,
  85. /* 0 1 2 3 */
  86. CASE_PRINT,
  87. CASE_PRINT,
  88. CASE_PRINT,
  89. CASE_PRINT,
  90. /* 4 5 6 7 */
  91. CASE_PRINT,
  92. CASE_PRINT,
  93. CASE_PRINT,
  94. CASE_PRINT,
  95. /* 8 9 : ; */
  96. CASE_PRINT,
  97. CASE_PRINT,
  98. CASE_PRINT,
  99. CASE_PRINT,
  100. /* < = > ? */
  101. CASE_PRINT,
  102. CASE_PRINT,
  103. CASE_PRINT,
  104. CASE_PRINT,
  105. /* @ A B C */
  106. CASE_PRINT,
  107. CASE_PRINT,
  108. CASE_PRINT,
  109. CASE_PRINT,
  110. /* D E F G */
  111. CASE_PRINT,
  112. CASE_PRINT,
  113. CASE_PRINT,
  114. CASE_PRINT,
  115. /* H I J K */
  116. CASE_PRINT,
  117. CASE_PRINT,
  118. CASE_PRINT,
  119. CASE_PRINT,
  120. /* L M N O */
  121. CASE_PRINT,
  122. CASE_PRINT,
  123. CASE_PRINT,
  124. CASE_PRINT,
  125. /* P Q R S */
  126. CASE_PRINT,
  127. CASE_PRINT,
  128. CASE_PRINT,
  129. CASE_PRINT,
  130. /* T U V W */
  131. CASE_PRINT,
  132. CASE_PRINT,
  133. CASE_PRINT,
  134. CASE_PRINT,
  135. /* X Y Z [ */
  136. CASE_PRINT,
  137. CASE_PRINT,
  138. CASE_PRINT,
  139. CASE_PRINT,
  140. /* \ ] ^ _ */
  141. CASE_PRINT,
  142. CASE_PRINT,
  143. CASE_PRINT,
  144. CASE_PRINT,
  145. /* ` a b c */
  146. CASE_PRINT,
  147. CASE_PRINT,
  148. CASE_PRINT,
  149. CASE_PRINT,
  150. /* d e f g */
  151. CASE_PRINT,
  152. CASE_PRINT,
  153. CASE_PRINT,
  154. CASE_PRINT,
  155. /* h i j k */
  156. CASE_PRINT,
  157. CASE_PRINT,
  158. CASE_PRINT,
  159. CASE_PRINT,
  160. /* l m n o */
  161. CASE_PRINT,
  162. CASE_PRINT,
  163. CASE_PRINT,
  164. CASE_PRINT,
  165. /* p q r s */
  166. CASE_PRINT,
  167. CASE_PRINT,
  168. CASE_PRINT,
  169. CASE_PRINT,
  170. /* t u v w */
  171. CASE_PRINT,
  172. CASE_PRINT,
  173. CASE_PRINT,
  174. CASE_PRINT,
  175. /* x y z { */
  176. CASE_PRINT,
  177. CASE_PRINT,
  178. CASE_PRINT,
  179. CASE_PRINT,
  180. /* | } ~ DEL */
  181. CASE_PRINT,
  182. CASE_PRINT,
  183. CASE_PRINT,
  184. CASE_IGNORE,
  185. };
  186. /* transition table for PLOT mode (CASE_PLT_STATE) */
  187. int Tplttable[] = {
  188. /* NUL SOH STX ETX */
  189. CASE_IGNORE,
  190. CASE_IGNORE,
  191. CASE_IGNORE,
  192. CASE_IGNORE,
  193. /* EOT ENQ ACK BEL */
  194. CASE_IGNORE,
  195. CASE_IGNORE,
  196. CASE_IGNORE,
  197. CASE_BEL,
  198. /* BS HT NL VT */
  199. CASE_BS,
  200. CASE_TAB,
  201. CASE_LF,
  202. CASE_UP,
  203. /* NP CR SO SI */
  204. CASE_IGNORE,
  205. CASE_CR,
  206. CASE_IGNORE,
  207. CASE_IGNORE,
  208. /* DLE DC1 DC2 DC3 */
  209. CASE_IGNORE,
  210. CASE_IGNORE,
  211. CASE_IGNORE,
  212. CASE_IGNORE,
  213. /* DC4 NAK SYN ETB */
  214. CASE_IGNORE,
  215. CASE_IGNORE,
  216. CASE_IGNORE,
  217. CASE_IGNORE,
  218. /* CAN EM SUB ESC */
  219. CASE_IGNORE,
  220. CASE_IGNORE,
  221. CASE_IGNORE,
  222. CASE_ESC_STATE,
  223. /* FS GS RS US */
  224. CASE_PT_STATE,
  225. CASE_PLT_STATE,
  226. CASE_IPL_STATE,
  227. CASE_ALP_STATE,
  228. /* SP ! " # */
  229. CASE_PLT_VEC,
  230. CASE_PLT_VEC,
  231. CASE_PLT_VEC,
  232. CASE_PLT_VEC,
  233. /* $ % & ' */
  234. CASE_PLT_VEC,
  235. CASE_PLT_VEC,
  236. CASE_PLT_VEC,
  237. CASE_PLT_VEC,
  238. /* ( ) * + */
  239. CASE_PLT_VEC,
  240. CASE_PLT_VEC,
  241. CASE_PLT_VEC,
  242. CASE_PLT_VEC,
  243. /* , - . / */
  244. CASE_PLT_VEC,
  245. CASE_PLT_VEC,
  246. CASE_PLT_VEC,
  247. CASE_PLT_VEC,
  248. /* 0 1 2 3 */
  249. CASE_PLT_VEC,
  250. CASE_PLT_VEC,
  251. CASE_PLT_VEC,
  252. CASE_PLT_VEC,
  253. /* 4 5 6 7 */
  254. CASE_PLT_VEC,
  255. CASE_PLT_VEC,
  256. CASE_PLT_VEC,
  257. CASE_PLT_VEC,
  258. /* 8 9 : ; */
  259. CASE_PLT_VEC,
  260. CASE_PLT_VEC,
  261. CASE_PLT_VEC,
  262. CASE_PLT_VEC,
  263. /* < = > ? */
  264. CASE_PLT_VEC,
  265. CASE_PLT_VEC,
  266. CASE_PLT_VEC,
  267. CASE_PLT_VEC,
  268. /* @ A B C */
  269. CASE_PLT_VEC,
  270. CASE_PLT_VEC,
  271. CASE_PLT_VEC,
  272. CASE_PLT_VEC,
  273. /* D E F G */
  274. CASE_PLT_VEC,
  275. CASE_PLT_VEC,
  276. CASE_PLT_VEC,
  277. CASE_PLT_VEC,
  278. /* H I J K */
  279. CASE_PLT_VEC,
  280. CASE_PLT_VEC,
  281. CASE_PLT_VEC,
  282. CASE_PLT_VEC,
  283. /* L M N O */
  284. CASE_PLT_VEC,
  285. CASE_PLT_VEC,
  286. CASE_PLT_VEC,
  287. CASE_PLT_VEC,
  288. /* P Q R S */
  289. CASE_PLT_VEC,
  290. CASE_PLT_VEC,
  291. CASE_PLT_VEC,
  292. CASE_PLT_VEC,
  293. /* T U V W */
  294. CASE_PLT_VEC,
  295. CASE_PLT_VEC,
  296. CASE_PLT_VEC,
  297. CASE_PLT_VEC,
  298. /* X Y Z [ */
  299. CASE_PLT_VEC,
  300. CASE_PLT_VEC,
  301. CASE_PLT_VEC,
  302. CASE_PLT_VEC,
  303. /* \ ] ^ _ */
  304. CASE_PLT_VEC,
  305. CASE_PLT_VEC,
  306. CASE_PLT_VEC,
  307. CASE_PLT_VEC,
  308. /* ` a b c */
  309. CASE_PLT_VEC,
  310. CASE_PLT_VEC,
  311. CASE_PLT_VEC,
  312. CASE_PLT_VEC,
  313. /* d e f g */
  314. CASE_PLT_VEC,
  315. CASE_PLT_VEC,
  316. CASE_PLT_VEC,
  317. CASE_PLT_VEC,
  318. /* h i j k */
  319. CASE_PLT_VEC,
  320. CASE_PLT_VEC,
  321. CASE_PLT_VEC,
  322. CASE_PLT_VEC,
  323. /* l m n o */
  324. CASE_PLT_VEC,
  325. CASE_PLT_VEC,
  326. CASE_PLT_VEC,
  327. CASE_PLT_VEC,
  328. /* p q r s */
  329. CASE_PLT_VEC,
  330. CASE_PLT_VEC,
  331. CASE_PLT_VEC,
  332. CASE_PLT_VEC,
  333. /* t u v w */
  334. CASE_PLT_VEC,
  335. CASE_PLT_VEC,
  336. CASE_PLT_VEC,
  337. CASE_PLT_VEC,
  338. /* x y z { */
  339. CASE_PLT_VEC,
  340. CASE_PLT_VEC,
  341. CASE_PLT_VEC,
  342. CASE_PLT_VEC,
  343. /* | } ~ DEL */
  344. CASE_PLT_VEC,
  345. CASE_PLT_VEC,
  346. CASE_PLT_VEC,
  347. CASE_PLT_VEC,
  348. };
  349. /* transition table for POINT mode (CASE_PT_STATE) */
  350. int Tpttable[] = {
  351. /* NUL SOH STX ETX */
  352. CASE_IGNORE,
  353. CASE_IGNORE,
  354. CASE_IGNORE,
  355. CASE_IGNORE,
  356. /* EOT ENQ ACK BEL */
  357. CASE_IGNORE,
  358. CASE_IGNORE,
  359. CASE_IGNORE,
  360. CASE_BEL,
  361. /* BS HT NL VT */
  362. CASE_BS,
  363. CASE_TAB,
  364. CASE_LF,
  365. CASE_UP,
  366. /* NP CR SO SI */
  367. CASE_IGNORE,
  368. CASE_CR,
  369. CASE_IGNORE,
  370. CASE_IGNORE,
  371. /* DLE DC1 DC2 DC3 */
  372. CASE_IGNORE,
  373. CASE_IGNORE,
  374. CASE_IGNORE,
  375. CASE_IGNORE,
  376. /* DC4 NAK SYN ETB */
  377. CASE_IGNORE,
  378. CASE_IGNORE,
  379. CASE_IGNORE,
  380. CASE_IGNORE,
  381. /* CAN EM SUB ESC */
  382. CASE_IGNORE,
  383. CASE_IGNORE,
  384. CASE_IGNORE,
  385. CASE_ESC_STATE,
  386. /* FS GS RS US */
  387. CASE_PT_STATE,
  388. CASE_PLT_STATE,
  389. CASE_IPL_STATE,
  390. CASE_ALP_STATE,
  391. /* SP ! " # */
  392. CASE_PT_POINT,
  393. CASE_PT_POINT,
  394. CASE_PT_POINT,
  395. CASE_PT_POINT,
  396. /* $ % & ' */
  397. CASE_PT_POINT,
  398. CASE_PT_POINT,
  399. CASE_PT_POINT,
  400. CASE_PT_POINT,
  401. /* ( ) * + */
  402. CASE_PT_POINT,
  403. CASE_PT_POINT,
  404. CASE_PT_POINT,
  405. CASE_PT_POINT,
  406. /* , - . / */
  407. CASE_PT_POINT,
  408. CASE_PT_POINT,
  409. CASE_PT_POINT,
  410. CASE_PT_POINT,
  411. /* 0 1 2 3 */
  412. CASE_PT_POINT,
  413. CASE_PT_POINT,
  414. CASE_PT_POINT,
  415. CASE_PT_POINT,
  416. /* 4 5 6 7 */
  417. CASE_PT_POINT,
  418. CASE_PT_POINT,
  419. CASE_PT_POINT,
  420. CASE_PT_POINT,
  421. /* 8 9 : ; */
  422. CASE_PT_POINT,
  423. CASE_PT_POINT,
  424. CASE_PT_POINT,
  425. CASE_PT_POINT,
  426. /* < = > ? */
  427. CASE_PT_POINT,
  428. CASE_PT_POINT,
  429. CASE_PT_POINT,
  430. CASE_PT_POINT,
  431. /* @ A B C */
  432. CASE_PT_POINT,
  433. CASE_PT_POINT,
  434. CASE_PT_POINT,
  435. CASE_PT_POINT,
  436. /* D E F G */
  437. CASE_PT_POINT,
  438. CASE_PT_POINT,
  439. CASE_PT_POINT,
  440. CASE_PT_POINT,
  441. /* H I J K */
  442. CASE_PT_POINT,
  443. CASE_PT_POINT,
  444. CASE_PT_POINT,
  445. CASE_PT_POINT,
  446. /* L M N O */
  447. CASE_PT_POINT,
  448. CASE_PT_POINT,
  449. CASE_PT_POINT,
  450. CASE_PT_POINT,
  451. /* P Q R S */
  452. CASE_PT_POINT,
  453. CASE_PT_POINT,
  454. CASE_PT_POINT,
  455. CASE_PT_POINT,
  456. /* T U V W */
  457. CASE_PT_POINT,
  458. CASE_PT_POINT,
  459. CASE_PT_POINT,
  460. CASE_PT_POINT,
  461. /* X Y Z [ */
  462. CASE_PT_POINT,
  463. CASE_PT_POINT,
  464. CASE_PT_POINT,
  465. CASE_PT_POINT,
  466. /* \ ] ^ _ */
  467. CASE_PT_POINT,
  468. CASE_PT_POINT,
  469. CASE_PT_POINT,
  470. CASE_PT_POINT,
  471. /* ` a b c */
  472. CASE_PT_POINT,
  473. CASE_PT_POINT,
  474. CASE_PT_POINT,
  475. CASE_PT_POINT,
  476. /* d e f g */
  477. CASE_PT_POINT,
  478. CASE_PT_POINT,
  479. CASE_PT_POINT,
  480. CASE_PT_POINT,
  481. /* h i j k */
  482. CASE_PT_POINT,
  483. CASE_PT_POINT,
  484. CASE_PT_POINT,
  485. CASE_PT_POINT,
  486. /* l m n o */
  487. CASE_PT_POINT,
  488. CASE_PT_POINT,
  489. CASE_PT_POINT,
  490. CASE_PT_POINT,
  491. /* p q r s */
  492. CASE_PT_POINT,
  493. CASE_PT_POINT,
  494. CASE_PT_POINT,
  495. CASE_PT_POINT,
  496. /* t u v w */
  497. CASE_PT_POINT,
  498. CASE_PT_POINT,
  499. CASE_PT_POINT,
  500. CASE_PT_POINT,
  501. /* x y z { */
  502. CASE_PT_POINT,
  503. CASE_PT_POINT,
  504. CASE_PT_POINT,
  505. CASE_PT_POINT,
  506. /* | } ~ DEL */
  507. CASE_PT_POINT,
  508. CASE_PT_POINT,
  509. CASE_PT_POINT,
  510. CASE_PT_POINT,
  511. };
  512. /* transition table for SPECIAL POINT PLOT mode (CASE_SPT_STATE) */
  513. int Tspttable[] = {
  514. /* NUL SOH STX ETX */
  515. CASE_IGNORE,
  516. CASE_IGNORE,
  517. CASE_IGNORE,
  518. CASE_IGNORE,
  519. /* EOT ENQ ACK BEL */
  520. CASE_IGNORE,
  521. CASE_IGNORE,
  522. CASE_IGNORE,
  523. CASE_BEL,
  524. /* BS HT NL VT */
  525. CASE_BS,
  526. CASE_TAB,
  527. CASE_LF,
  528. CASE_UP,
  529. /* NP CR SO SI */
  530. CASE_IGNORE,
  531. CASE_CR,
  532. CASE_IGNORE,
  533. CASE_IGNORE,
  534. /* DLE DC1 DC2 DC3 */
  535. CASE_IGNORE,
  536. CASE_IGNORE,
  537. CASE_IGNORE,
  538. CASE_IGNORE,
  539. /* DC4 NAK SYN ETB */
  540. CASE_IGNORE,
  541. CASE_IGNORE,
  542. CASE_IGNORE,
  543. CASE_IGNORE,
  544. /* CAN EM SUB ESC */
  545. CASE_IGNORE,
  546. CASE_IGNORE,
  547. CASE_IGNORE,
  548. CASE_ESC_STATE,
  549. /* FS GS RS US */
  550. CASE_PT_STATE,
  551. CASE_PLT_STATE,
  552. CASE_IPL_STATE,
  553. CASE_ALP_STATE,
  554. /* SP ! " # */
  555. CASE_SPT_POINT,
  556. CASE_SPT_POINT,
  557. CASE_SPT_POINT,
  558. CASE_SPT_POINT,
  559. /* $ % & ' */
  560. CASE_SPT_POINT,
  561. CASE_SPT_POINT,
  562. CASE_SPT_POINT,
  563. CASE_SPT_POINT,
  564. /* ( ) * + */
  565. CASE_SPT_POINT,
  566. CASE_SPT_POINT,
  567. CASE_SPT_POINT,
  568. CASE_SPT_POINT,
  569. /* , - . / */
  570. CASE_SPT_POINT,
  571. CASE_SPT_POINT,
  572. CASE_SPT_POINT,
  573. CASE_SPT_POINT,
  574. /* 0 1 2 3 */
  575. CASE_SPT_POINT,
  576. CASE_SPT_POINT,
  577. CASE_SPT_POINT,
  578. CASE_SPT_POINT,
  579. /* 4 5 6 7 */
  580. CASE_SPT_POINT,
  581. CASE_SPT_POINT,
  582. CASE_SPT_POINT,
  583. CASE_SPT_POINT,
  584. /* 8 9 : ; */
  585. CASE_SPT_POINT,
  586. CASE_SPT_POINT,
  587. CASE_SPT_POINT,
  588. CASE_SPT_POINT,
  589. /* < = > ? */
  590. CASE_SPT_POINT,
  591. CASE_SPT_POINT,
  592. CASE_SPT_POINT,
  593. CASE_SPT_POINT,
  594. /* @ A B C */
  595. CASE_SPT_POINT,
  596. CASE_SPT_POINT,
  597. CASE_SPT_POINT,
  598. CASE_SPT_POINT,
  599. /* D E F G */
  600. CASE_SPT_POINT,
  601. CASE_SPT_POINT,
  602. CASE_SPT_POINT,
  603. CASE_SPT_POINT,
  604. /* H I J K */
  605. CASE_SPT_POINT,
  606. CASE_SPT_POINT,
  607. CASE_SPT_POINT,
  608. CASE_SPT_POINT,
  609. /* L M N O */
  610. CASE_SPT_POINT,
  611. CASE_SPT_POINT,
  612. CASE_SPT_POINT,
  613. CASE_SPT_POINT,
  614. /* P Q R S */
  615. CASE_SPT_POINT,
  616. CASE_SPT_POINT,
  617. CASE_SPT_POINT,
  618. CASE_SPT_POINT,
  619. /* T U V W */
  620. CASE_SPT_POINT,
  621. CASE_SPT_POINT,
  622. CASE_SPT_POINT,
  623. CASE_SPT_POINT,
  624. /* X Y Z [ */
  625. CASE_SPT_POINT,
  626. CASE_SPT_POINT,
  627. CASE_SPT_POINT,
  628. CASE_SPT_POINT,
  629. /* \ ] ^ _ */
  630. CASE_SPT_POINT,
  631. CASE_SPT_POINT,
  632. CASE_SPT_POINT,
  633. CASE_SPT_POINT,
  634. /* ` a b c */
  635. CASE_SPT_POINT,
  636. CASE_SPT_POINT,
  637. CASE_SPT_POINT,
  638. CASE_SPT_POINT,
  639. /* d e f g */
  640. CASE_SPT_POINT,
  641. CASE_SPT_POINT,
  642. CASE_SPT_POINT,
  643. CASE_SPT_POINT,
  644. /* h i j k */
  645. CASE_SPT_POINT,
  646. CASE_SPT_POINT,
  647. CASE_SPT_POINT,
  648. CASE_SPT_POINT,
  649. /* l m n o */
  650. CASE_SPT_POINT,
  651. CASE_SPT_POINT,
  652. CASE_SPT_POINT,
  653. CASE_SPT_POINT,
  654. /* p q r s */
  655. CASE_SPT_POINT,
  656. CASE_SPT_POINT,
  657. CASE_SPT_POINT,
  658. CASE_SPT_POINT,
  659. /* t u v w */
  660. CASE_SPT_POINT,
  661. CASE_SPT_POINT,
  662. CASE_SPT_POINT,
  663. CASE_SPT_POINT,
  664. /* x y z { */
  665. CASE_SPT_POINT,
  666. CASE_SPT_POINT,
  667. CASE_SPT_POINT,
  668. CASE_SPT_POINT,
  669. /* | } ~ DEL */
  670. CASE_SPT_POINT,
  671. CASE_SPT_POINT,
  672. CASE_SPT_POINT,
  673. CASE_SPT_POINT,
  674. };
  675. /* transition table for INCREMENTAL PLOT mode (CASE_IPL_STATE) */
  676. int Tipltable[] = {
  677. /* NUL SOH STX ETX */
  678. CASE_IGNORE,
  679. CASE_IGNORE,
  680. CASE_IGNORE,
  681. CASE_IGNORE,
  682. /* EOT ENQ ACK BEL */
  683. CASE_IGNORE,
  684. CASE_IGNORE,
  685. CASE_IGNORE,
  686. CASE_BEL,
  687. /* BS HT NL VT */
  688. CASE_BS,
  689. CASE_TAB,
  690. CASE_LF,
  691. CASE_UP,
  692. /* NP CR SO SI */
  693. CASE_IGNORE,
  694. CASE_CR,
  695. CASE_IGNORE,
  696. CASE_IGNORE,
  697. /* DLE DC1 DC2 DC3 */
  698. CASE_IGNORE,
  699. CASE_IGNORE,
  700. CASE_IGNORE,
  701. CASE_IGNORE,
  702. /* DC4 NAK SYN ETB */
  703. CASE_IGNORE,
  704. CASE_IGNORE,
  705. CASE_IGNORE,
  706. CASE_IGNORE,
  707. /* CAN EM SUB ESC */
  708. CASE_IGNORE,
  709. CASE_IGNORE,
  710. CASE_IGNORE,
  711. CASE_ESC_STATE,
  712. /* FS GS RS US */
  713. CASE_PT_STATE,
  714. CASE_PLT_STATE,
  715. CASE_IPL_STATE,
  716. CASE_ALP_STATE,
  717. /* SP ! " # */
  718. CASE_PENUP,
  719. CASE_IGNORE,
  720. CASE_IGNORE,
  721. CASE_IGNORE,
  722. /* $ % & ' */
  723. CASE_IGNORE,
  724. CASE_IGNORE,
  725. CASE_IGNORE,
  726. CASE_IGNORE,
  727. /* ( ) * + */
  728. CASE_IGNORE,
  729. CASE_IGNORE,
  730. CASE_IGNORE,
  731. CASE_IGNORE,
  732. /* , - . / */
  733. CASE_IGNORE,
  734. CASE_IGNORE,
  735. CASE_IGNORE,
  736. CASE_IGNORE,
  737. /* 0 1 2 3 */
  738. CASE_IGNORE,
  739. CASE_IGNORE,
  740. CASE_IGNORE,
  741. CASE_IGNORE,
  742. /* 4 5 6 7 */
  743. CASE_IGNORE,
  744. CASE_IGNORE,
  745. CASE_IGNORE,
  746. CASE_IGNORE,
  747. /* 8 9 : ; */
  748. CASE_IGNORE,
  749. CASE_IGNORE,
  750. CASE_IGNORE,
  751. CASE_IGNORE,
  752. /* < = > ? */
  753. CASE_IGNORE,
  754. CASE_IGNORE,
  755. CASE_IGNORE,
  756. CASE_IGNORE,
  757. /* @ A B C */
  758. CASE_IGNORE,
  759. CASE_IPL_POINT,
  760. CASE_IPL_POINT,
  761. CASE_IGNORE,
  762. /* D E F G */
  763. CASE_IPL_POINT,
  764. CASE_IPL_POINT,
  765. CASE_IPL_POINT,
  766. CASE_IGNORE,
  767. /* H I J K */
  768. CASE_IPL_POINT,
  769. CASE_IPL_POINT,
  770. CASE_IPL_POINT,
  771. CASE_IGNORE,
  772. /* L M N O */
  773. CASE_IGNORE,
  774. CASE_IGNORE,
  775. CASE_IGNORE,
  776. CASE_IGNORE,
  777. /* P Q R S */
  778. CASE_PENDOWN,
  779. CASE_IGNORE,
  780. CASE_IGNORE,
  781. CASE_IGNORE,
  782. /* T U V W */
  783. CASE_IGNORE,
  784. CASE_IGNORE,
  785. CASE_IGNORE,
  786. CASE_IGNORE,
  787. /* X Y Z [ */
  788. CASE_IGNORE,
  789. CASE_IGNORE,
  790. CASE_IGNORE,
  791. CASE_IGNORE,
  792. /* \ ] ^ _ */
  793. CASE_IGNORE,
  794. CASE_IGNORE,
  795. CASE_IGNORE,
  796. CASE_IGNORE,
  797. /* ` a b c */
  798. CASE_IGNORE,
  799. CASE_IGNORE,
  800. CASE_IGNORE,
  801. CASE_IGNORE,
  802. /* d e f g */
  803. CASE_IGNORE,
  804. CASE_IGNORE,
  805. CASE_IGNORE,
  806. CASE_IGNORE,
  807. /* h i j k */
  808. CASE_IGNORE,
  809. CASE_IGNORE,
  810. CASE_IGNORE,
  811. CASE_IGNORE,
  812. /* l m n o */
  813. CASE_IGNORE,
  814. CASE_IGNORE,
  815. CASE_IGNORE,
  816. CASE_IGNORE,
  817. /* p q r s */
  818. CASE_IGNORE,
  819. CASE_IGNORE,
  820. CASE_IGNORE,
  821. CASE_IGNORE,
  822. /* t u v w */
  823. CASE_IGNORE,
  824. CASE_IGNORE,
  825. CASE_IGNORE,
  826. CASE_IGNORE,
  827. /* x y z { */
  828. CASE_IGNORE,
  829. CASE_IGNORE,
  830. CASE_IGNORE,
  831. CASE_IGNORE,
  832. /* | } ~ DEL */
  833. CASE_IGNORE,
  834. CASE_IGNORE,
  835. CASE_IGNORE,
  836. CASE_IGNORE,
  837. };
  838. /* Other states */
  839. /* transition table for CASE_BES_STATE */
  840. int Tbestable[] = {
  841. /* NUL SOH STX ETX */
  842. CASE_BYP_STATE,
  843. CASE_BYP_STATE,
  844. CASE_BYP_STATE,
  845. CASE_VT_MODE,
  846. /* EOT ENQ ACK BEL */
  847. CASE_BYP_STATE,
  848. CASE_REPORT,
  849. CASE_BYP_STATE,
  850. CASE_BEL,
  851. /* BS HT NL VT */
  852. CASE_BS,
  853. CASE_TAB,
  854. CASE_IGNORE,
  855. CASE_UP,
  856. /* NP CR SO SI */
  857. CASE_PAGE,
  858. CASE_IGNORE,
  859. CASE_BYP_STATE,
  860. CASE_BYP_STATE,
  861. /* DLE DC1 DC2 DC3 */
  862. CASE_BYP_STATE,
  863. CASE_BYP_STATE,
  864. CASE_BYP_STATE,
  865. CASE_BYP_STATE,
  866. /* DC4 NAK SYN ETB */
  867. CASE_BYP_STATE,
  868. CASE_BYP_STATE,
  869. CASE_BYP_STATE,
  870. CASE_COPY,
  871. /* CAN EM SUB ESC */
  872. CASE_BYP_STATE,
  873. CASE_BYP_STATE,
  874. CASE_GIN,
  875. CASE_IGNORE,
  876. /* FS GS RS US */
  877. CASE_SPT_STATE,
  878. CASE_PLT_STATE,
  879. CASE_IPL_STATE,
  880. CASE_ALP_STATE,
  881. /* SP ! " # */
  882. CASE_BYP_STATE,
  883. CASE_BYP_STATE,
  884. CASE_BYP_STATE,
  885. CASE_BYP_STATE,
  886. /* $ % & ' */
  887. CASE_BYP_STATE,
  888. CASE_BYP_STATE,
  889. CASE_BYP_STATE,
  890. CASE_BYP_STATE,
  891. /* ( ) * + */
  892. CASE_BYP_STATE,
  893. CASE_BYP_STATE,
  894. CASE_BYP_STATE,
  895. CASE_BYP_STATE,
  896. /* , - . / */
  897. CASE_BYP_STATE,
  898. CASE_BYP_STATE,
  899. CASE_BYP_STATE,
  900. CASE_BYP_STATE,
  901. /* 0 1 2 3 */
  902. CASE_BYP_STATE,
  903. CASE_BYP_STATE,
  904. CASE_BYP_STATE,
  905. CASE_BYP_STATE,
  906. /* 4 5 6 7 */
  907. CASE_BYP_STATE,
  908. CASE_BYP_STATE,
  909. CASE_BYP_STATE,
  910. CASE_BYP_STATE,
  911. /* 8 9 : ; */
  912. CASE_BYP_STATE,
  913. CASE_BYP_STATE,
  914. CASE_BYP_STATE,
  915. CASE_BYP_STATE,
  916. /* < = > ? */
  917. CASE_BYP_STATE,
  918. CASE_BYP_STATE,
  919. CASE_BYP_STATE,
  920. CASE_BYP_STATE,
  921. /* @ A B C */
  922. CASE_BYP_STATE,
  923. CASE_BYP_STATE,
  924. CASE_BYP_STATE,
  925. CASE_BYP_STATE,
  926. /* D E F G */
  927. CASE_BYP_STATE,
  928. CASE_BYP_STATE,
  929. CASE_BYP_STATE,
  930. CASE_BYP_STATE,
  931. /* H I J K */
  932. CASE_BYP_STATE,
  933. CASE_BYP_STATE,
  934. CASE_BYP_STATE,
  935. CASE_BYP_STATE,
  936. /* L M N O */
  937. CASE_BYP_STATE,
  938. CASE_BYP_STATE,
  939. CASE_BYP_STATE,
  940. CASE_BYP_STATE,
  941. /* P Q R S */
  942. CASE_BYP_STATE,
  943. CASE_BYP_STATE,
  944. CASE_BYP_STATE,
  945. CASE_BYP_STATE,
  946. /* T U V W */
  947. CASE_BYP_STATE,
  948. CASE_BYP_STATE,
  949. CASE_BYP_STATE,
  950. CASE_BYP_STATE,
  951. /* X Y Z [ */
  952. CASE_BYP_STATE,
  953. CASE_BYP_STATE,
  954. CASE_BYP_STATE,
  955. CASE_BYP_STATE,
  956. /* \ ] ^ _ */
  957. CASE_BYP_STATE,
  958. CASE_BYP_STATE,
  959. CASE_BYP_STATE,
  960. CASE_BYP_STATE,
  961. /* ` a b c */
  962. CASE_BYP_STATE,
  963. CASE_BYP_STATE,
  964. CASE_BYP_STATE,
  965. CASE_BYP_STATE,
  966. /* d e f g */
  967. CASE_BYP_STATE,
  968. CASE_BYP_STATE,
  969. CASE_BYP_STATE,
  970. CASE_BYP_STATE,
  971. /* h i j k */
  972. CASE_BYP_STATE,
  973. CASE_BYP_STATE,
  974. CASE_BYP_STATE,
  975. CASE_BYP_STATE,
  976. /* l m n o */
  977. CASE_BYP_STATE,
  978. CASE_BYP_STATE,
  979. CASE_BYP_STATE,
  980. CASE_BYP_STATE,
  981. /* p q r s */
  982. CASE_BYP_STATE,
  983. CASE_BYP_STATE,
  984. CASE_BYP_STATE,
  985. CASE_BYP_STATE,
  986. /* t u v w */
  987. CASE_BYP_STATE,
  988. CASE_BYP_STATE,
  989. CASE_BYP_STATE,
  990. CASE_BYP_STATE,
  991. /* x y z { */
  992. CASE_BYP_STATE,
  993. CASE_BYP_STATE,
  994. CASE_BYP_STATE,
  995. CASE_BYP_STATE,
  996. /* | } ~ DEL */
  997. CASE_BYP_STATE,
  998. CASE_BYP_STATE,
  999. CASE_IGNORE,
  1000. CASE_BYP_STATE,
  1001. };
  1002. /* transition table for CASE_BYP_STATE */
  1003. int Tbyptable[] = {
  1004. /* NUL SOH STX ETX */
  1005. CASE_IGNORE,
  1006. CASE_IGNORE,
  1007. CASE_IGNORE,
  1008. CASE_IGNORE,
  1009. /* EOT ENQ ACK BEL */
  1010. CASE_IGNORE,
  1011. CASE_IGNORE,
  1012. CASE_IGNORE,
  1013. CASE_BEL,
  1014. /* BS HT NL VT */
  1015. CASE_BS,
  1016. CASE_TAB,
  1017. CASE_LF,
  1018. CASE_UP,
  1019. /* NP CR SO SI */
  1020. CASE_IGNORE,
  1021. CASE_CR,
  1022. CASE_IGNORE,
  1023. CASE_IGNORE,
  1024. /* DLE DC1 DC2 DC3 */
  1025. CASE_IGNORE,
  1026. CASE_IGNORE,
  1027. CASE_IGNORE,
  1028. CASE_IGNORE,
  1029. /* DC4 NAK SYN ETB */
  1030. CASE_IGNORE,
  1031. CASE_IGNORE,
  1032. CASE_IGNORE,
  1033. CASE_IGNORE,
  1034. /* CAN EM SUB ESC */
  1035. CASE_IGNORE,
  1036. CASE_IGNORE,
  1037. CASE_IGNORE,
  1038. CASE_BES_STATE,
  1039. /* FS GS RS US */
  1040. CASE_PT_STATE,
  1041. CASE_PLT_STATE,
  1042. CASE_IPL_STATE,
  1043. CASE_ALP_STATE,
  1044. /* SP ! " # */
  1045. CASE_IGNORE,
  1046. CASE_IGNORE,
  1047. CASE_IGNORE,
  1048. CASE_IGNORE,
  1049. /* $ % & ' */
  1050. CASE_IGNORE,
  1051. CASE_IGNORE,
  1052. CASE_IGNORE,
  1053. CASE_IGNORE,
  1054. /* ( ) * + */
  1055. CASE_IGNORE,
  1056. CASE_IGNORE,
  1057. CASE_IGNORE,
  1058. CASE_IGNORE,
  1059. /* , - . / */
  1060. CASE_IGNORE,
  1061. CASE_IGNORE,
  1062. CASE_IGNORE,
  1063. CASE_IGNORE,
  1064. /* 0 1 2 3 */
  1065. CASE_IGNORE,
  1066. CASE_IGNORE,
  1067. CASE_IGNORE,
  1068. CASE_IGNORE,
  1069. /* 4 5 6 7 */
  1070. CASE_IGNORE,
  1071. CASE_IGNORE,
  1072. CASE_IGNORE,
  1073. CASE_IGNORE,
  1074. /* 8 9 : ; */
  1075. CASE_IGNORE,
  1076. CASE_IGNORE,
  1077. CASE_IGNORE,
  1078. CASE_IGNORE,
  1079. /* < = > ? */
  1080. CASE_IGNORE,
  1081. CASE_IGNORE,
  1082. CASE_IGNORE,
  1083. CASE_IGNORE,
  1084. /* @ A B C */
  1085. CASE_IGNORE,
  1086. CASE_IGNORE,
  1087. CASE_IGNORE,
  1088. CASE_IGNORE,
  1089. /* D E F G */
  1090. CASE_IGNORE,
  1091. CASE_IGNORE,
  1092. CASE_IGNORE,
  1093. CASE_IGNORE,
  1094. /* H I J K */
  1095. CASE_IGNORE,
  1096. CASE_IGNORE,
  1097. CASE_IGNORE,
  1098. CASE_IGNORE,
  1099. /* L M N O */
  1100. CASE_IGNORE,
  1101. CASE_IGNORE,
  1102. CASE_IGNORE,
  1103. CASE_IGNORE,
  1104. /* P Q R S */
  1105. CASE_IGNORE,
  1106. CASE_IGNORE,
  1107. CASE_IGNORE,
  1108. CASE_IGNORE,
  1109. /* T U V W */
  1110. CASE_IGNORE,
  1111. CASE_IGNORE,
  1112. CASE_IGNORE,
  1113. CASE_IGNORE,
  1114. /* X Y Z [ */
  1115. CASE_IGNORE,
  1116. CASE_IGNORE,
  1117. CASE_IGNORE,
  1118. CASE_IGNORE,
  1119. /* \ ] ^ _ */
  1120. CASE_IGNORE,
  1121. CASE_IGNORE,
  1122. CASE_IGNORE,
  1123. CASE_IGNORE,
  1124. /* ` a b c */
  1125. CASE_IGNORE,
  1126. CASE_IGNORE,
  1127. CASE_IGNORE,
  1128. CASE_IGNORE,
  1129. /* d e f g */
  1130. CASE_IGNORE,
  1131. CASE_IGNORE,
  1132. CASE_IGNORE,
  1133. CASE_IGNORE,
  1134. /* h i j k */
  1135. CASE_IGNORE,
  1136. CASE_IGNORE,
  1137. CASE_IGNORE,
  1138. CASE_IGNORE,
  1139. /* l m n o */
  1140. CASE_IGNORE,
  1141. CASE_IGNORE,
  1142. CASE_IGNORE,
  1143. CASE_IGNORE,
  1144. /* p q r s */
  1145. CASE_IGNORE,
  1146. CASE_IGNORE,
  1147. CASE_IGNORE,
  1148. CASE_IGNORE,
  1149. /* t u v w */
  1150. CASE_IGNORE,
  1151. CASE_IGNORE,
  1152. CASE_IGNORE,
  1153. CASE_IGNORE,
  1154. /* x y z { */
  1155. CASE_IGNORE,
  1156. CASE_IGNORE,
  1157. CASE_IGNORE,
  1158. CASE_IGNORE,
  1159. /* | } ~ DEL */
  1160. CASE_IGNORE,
  1161. CASE_IGNORE,
  1162. CASE_IGNORE,
  1163. CASE_IGNORE,
  1164. };
  1165. /* transition table for CASE_ESC_STATE */
  1166. int Tesctable[] = {
  1167. /* NUL SOH STX ETX */
  1168. CASE_CURSTATE,
  1169. CASE_CURSTATE,
  1170. CASE_CURSTATE,
  1171. CASE_VT_MODE,
  1172. /* EOT ENQ ACK BEL */
  1173. CASE_CURSTATE,
  1174. CASE_REPORT,
  1175. CASE_CURSTATE,
  1176. CASE_BEL,
  1177. /* BS HT NL VT */
  1178. CASE_BS,
  1179. CASE_TAB,
  1180. CASE_IGNORE,
  1181. CASE_UP,
  1182. /* NP CR SO SI */
  1183. CASE_PAGE,
  1184. CASE_IGNORE,
  1185. CASE_APL,
  1186. CASE_ASCII,
  1187. /* DLE DC1 DC2 DC3 */
  1188. CASE_CURSTATE,
  1189. CASE_CURSTATE,
  1190. CASE_CURSTATE,
  1191. CASE_CURSTATE,
  1192. /* DC4 NAK SYN ETB */
  1193. CASE_CURSTATE,
  1194. CASE_CURSTATE,
  1195. CASE_CURSTATE,
  1196. CASE_COPY,
  1197. /* CAN EM SUB ESC */
  1198. CASE_BYP_STATE,
  1199. CASE_CURSTATE,
  1200. CASE_GIN,
  1201. CASE_IGNORE,
  1202. /* FS GS RS US */
  1203. CASE_SPT_STATE,
  1204. CASE_PLT_STATE,
  1205. CASE_IPL_STATE,
  1206. CASE_ALP_STATE,
  1207. /* SP ! " # */
  1208. CASE_CURSTATE,
  1209. CASE_CURSTATE,
  1210. CASE_CURSTATE,
  1211. CASE_CURSTATE,
  1212. /* $ % & ' */
  1213. CASE_CURSTATE,
  1214. CASE_CURSTATE,
  1215. CASE_CURSTATE,
  1216. CASE_CURSTATE,
  1217. /* ( ) * + */
  1218. CASE_CURSTATE,
  1219. CASE_CURSTATE,
  1220. CASE_CURSTATE,
  1221. CASE_CURSTATE,
  1222. /* , - . / */
  1223. CASE_CURSTATE,
  1224. CASE_CURSTATE,
  1225. CASE_CURSTATE,
  1226. CASE_CURSTATE,
  1227. /* 0 1 2 3 */
  1228. CASE_CURSTATE,
  1229. CASE_CURSTATE,
  1230. CASE_CURSTATE,
  1231. CASE_CURSTATE,
  1232. /* 4 5 6 7 */
  1233. CASE_CURSTATE,
  1234. CASE_CURSTATE,
  1235. CASE_CURSTATE,
  1236. CASE_CURSTATE,
  1237. /* 8 9 : ; */
  1238. CASE_CHAR_SIZE,
  1239. CASE_CHAR_SIZE,
  1240. CASE_CHAR_SIZE,
  1241. CASE_CHAR_SIZE,
  1242. /* < = > ? */
  1243. CASE_CURSTATE,
  1244. CASE_CURSTATE,
  1245. CASE_CURSTATE,
  1246. CASE_CURSTATE,
  1247. /* @ A B C */
  1248. CASE_CURSTATE,
  1249. CASE_CURSTATE,
  1250. CASE_CURSTATE,
  1251. CASE_CURSTATE,
  1252. /* D E F G */
  1253. CASE_CURSTATE,
  1254. CASE_CURSTATE,
  1255. CASE_CURSTATE,
  1256. CASE_CURSTATE,
  1257. /* H I J K */
  1258. CASE_CURSTATE,
  1259. CASE_CURSTATE,
  1260. CASE_CURSTATE,
  1261. CASE_CURSTATE,
  1262. /* L M N O */
  1263. CASE_CURSTATE,
  1264. CASE_CURSTATE,
  1265. CASE_CURSTATE,
  1266. CASE_CURSTATE,
  1267. /* P Q R S */
  1268. CASE_CURSTATE,
  1269. CASE_CURSTATE,
  1270. CASE_CURSTATE,
  1271. CASE_CURSTATE,
  1272. /* T U V W */
  1273. CASE_CURSTATE,
  1274. CASE_CURSTATE,
  1275. CASE_CURSTATE,
  1276. CASE_CURSTATE,
  1277. /* X Y Z [ */
  1278. CASE_CURSTATE,
  1279. CASE_CURSTATE,
  1280. CASE_CURSTATE,
  1281. CASE_ANSI,
  1282. /* \ ] ^ _ */
  1283. CASE_CURSTATE,
  1284. CASE_OSC,
  1285. CASE_CURSTATE,
  1286. CASE_CURSTATE,
  1287. /* ` a b c */
  1288. CASE_BEAM_VEC,
  1289. CASE_BEAM_VEC,
  1290. CASE_BEAM_VEC,
  1291. CASE_BEAM_VEC,
  1292. /* d e f g */
  1293. CASE_BEAM_VEC,
  1294. CASE_CURSTATE,
  1295. CASE_CURSTATE,
  1296. CASE_BEAM_VEC,
  1297. /* h i j k */
  1298. CASE_BEAM_VEC,
  1299. CASE_BEAM_VEC,
  1300. CASE_BEAM_VEC,
  1301. CASE_BEAM_VEC,
  1302. /* l m n o */
  1303. CASE_BEAM_VEC,
  1304. CASE_CURSTATE,
  1305. CASE_CURSTATE,
  1306. CASE_BEAM_VEC,
  1307. /* p q r s */
  1308. CASE_BEAM_VEC,
  1309. CASE_BEAM_VEC,
  1310. CASE_BEAM_VEC,
  1311. CASE_BEAM_VEC,
  1312. /* t u v w */
  1313. CASE_BEAM_VEC,
  1314. CASE_CURSTATE,
  1315. CASE_CURSTATE,
  1316. CASE_BEAM_VEC,
  1317. /* x y z { */
  1318. CASE_CURSTATE,
  1319. CASE_CURSTATE,
  1320. CASE_CURSTATE,
  1321. CASE_CURSTATE,
  1322. /* | } ~ DEL */
  1323. CASE_CURSTATE,
  1324. CASE_CURSTATE,
  1325. CASE_IGNORE,
  1326. CASE_CURSTATE,
  1327. };