1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
#![allow(non_upper_case_globals, missing_docs)]
#![cfg_attr(rustfmt, rustfmt_skip)]

pub static boolfnames: &'static [&'static str] = &["auto_left_margin",
                                                   "auto_right_margin",
                                                   "no_esc_ctlc",
                                                   "ceol_standout_glitch",
                                                   "eat_newline_glitch",
                                                   "erase_overstrike",
                                                   "generic_type",
                                                   "hard_copy",
                                                   "has_meta_key",
                                                   "has_status_line",
                                                   "insert_null_glitch",
                                                   "memory_above",
                                                   "memory_below",
                                                   "move_insert_mode",
                                                   "move_standout_mode",
                                                   "over_strike",
                                                   "status_line_esc_ok",
                                                   "dest_tabs_magic_smso",
                                                   "tilde_glitch",
                                                   "transparent_underline",
                                                   "xon_xoff",
                                                   "needs_xon_xoff",
                                                   "prtr_silent",
                                                   "hard_cursor",
                                                   "non_rev_rmcup",
                                                   "no_pad_char",
                                                   "non_dest_scroll_region",
                                                   "can_change",
                                                   "back_color_erase",
                                                   "hue_lightness_saturation",
                                                   "col_addr_glitch",
                                                   "cr_cancels_micro_mode",
                                                   "has_print_wheel",
                                                   "row_addr_glitch",
                                                   "semi_auto_right_margin",
                                                   "cpi_changes_res",
                                                   "lpi_changes_res",
                                                   "backspaces_with_bs",
                                                   "crt_no_scrolling",
                                                   "no_correctly_working_cr",
                                                   "gnu_has_meta_key",
                                                   "linefeed_is_newline",
                                                   "has_hardware_tabs",
                                                   "return_does_clr_eol"];

pub static boolnames: &'static [&'static str] =
    &["bw", "am", "xsb", "xhp", "xenl", "eo", "gn", "hc", "km", "hs", "in", "db", "da", "mir",
      "msgr", "os", "eslok", "xt", "hz", "ul", "xon", "nxon", "mc5i", "chts", "nrrmc", "npc",
      "ndscr", "ccc", "bce", "hls", "xhpa", "crxm", "daisy", "xvpa", "sam", "cpix", "lpix",
      "OTbs", "OTns", "OTnc", "OTMT", "OTNL", "OTpt", "OTxr"];

pub static numfnames: &'static [&'static str] = &["columns",
                                                  "init_tabs",
                                                  "lines",
                                                  "lines_of_memory",
                                                  "magic_cookie_glitch",
                                                  "padding_baud_rate",
                                                  "virtual_terminal",
                                                  "width_status_line",
                                                  "num_labels",
                                                  "label_height",
                                                  "label_width",
                                                  "max_attributes",
                                                  "maximum_windows",
                                                  "max_colors",
                                                  "max_pairs",
                                                  "no_color_video",
                                                  "buffer_capacity",
                                                  "dot_vert_spacing",
                                                  "dot_horz_spacing",
                                                  "max_micro_address",
                                                  "max_micro_jump",
                                                  "micro_col_size",
                                                  "micro_line_size",
                                                  "number_of_pins",
                                                  "output_res_char",
                                                  "output_res_line",
                                                  "output_res_horz_inch",
                                                  "output_res_vert_inch",
                                                  "print_rate",
                                                  "wide_char_size",
                                                  "buttons",
                                                  "bit_image_entwining",
                                                  "bit_image_type",
                                                  "magic_cookie_glitch_ul",
                                                  "carriage_return_delay",
                                                  "new_line_delay",
                                                  "backspace_delay",
                                                  "horizontal_tab_delay",
                                                  "number_of_function_keys"];

pub static numnames: &'static [&'static str] =
    &["cols", "it", "lines", "lm", "xmc", "pb", "vt", "wsl", "nlab", "lh", "lw", "ma", "wnum",
      "colors", "pairs", "ncv", "bufsz", "spinv", "spinh", "maddr", "mjump", "mcs", "mls",
      "npins", "orc", "orl", "orhi", "orvi", "cps", "widcs", "btns", "bitwin", "bitype", "UTug",
      "OTdC", "OTdN", "OTdB", "OTdT", "OTkn"];

pub static stringfnames: &'static [&'static str] = &["back_tab",
                                                     "bell",
                                                     "carriage_return",
                                                     "change_scroll_region",
                                                     "clear_all_tabs",
                                                     "clear_screen",
                                                     "clr_eol",
                                                     "clr_eos",
                                                     "column_address",
                                                     "command_character",
                                                     "cursor_address",
                                                     "cursor_down",
                                                     "cursor_home",
                                                     "cursor_invisible",
                                                     "cursor_left",
                                                     "cursor_mem_address",
                                                     "cursor_normal",
                                                     "cursor_right",
                                                     "cursor_to_ll",
                                                     "cursor_up",
                                                     "cursor_visible",
                                                     "delete_character",
                                                     "delete_line",
                                                     "dis_status_line",
                                                     "down_half_line",
                                                     "enter_alt_charset_mode",
                                                     "enter_blink_mode",
                                                     "enter_bold_mode",
                                                     "enter_ca_mode",
                                                     "enter_delete_mode",
                                                     "enter_dim_mode",
                                                     "enter_insert_mode",
                                                     "enter_secure_mode",
                                                     "enter_protected_mode",
                                                     "enter_reverse_mode",
                                                     "enter_standout_mode",
                                                     "enter_underline_mode",
                                                     "erase_chars",
                                                     "exit_alt_charset_mode",
                                                     "exit_attribute_mode",
                                                     "exit_ca_mode",
                                                     "exit_delete_mode",
                                                     "exit_insert_mode",
                                                     "exit_standout_mode",
                                                     "exit_underline_mode",
                                                     "flash_screen",
                                                     "form_feed",
                                                     "from_status_line",
                                                     "init_1string",
                                                     "init_2string",
                                                     "init_3string",
                                                     "init_file",
                                                     "insert_character",
                                                     "insert_line",
                                                     "insert_padding",
                                                     "key_backspace",
                                                     "key_catab",
                                                     "key_clear",
                                                     "key_ctab",
                                                     "key_dc",
                                                     "key_dl",
                                                     "key_down",
                                                     "key_eic",
                                                     "key_eol",
                                                     "key_eos",
                                                     "key_f0",
                                                     "key_f1",
                                                     "key_f10",
                                                     "key_f2",
                                                     "key_f3",
                                                     "key_f4",
                                                     "key_f5",
                                                     "key_f6",
                                                     "key_f7",
                                                     "key_f8",
                                                     "key_f9",
                                                     "key_home",
                                                     "key_ic",
                                                     "key_il",
                                                     "key_left",
                                                     "key_ll",
                                                     "key_npage",
                                                     "key_ppage",
                                                     "key_right",
                                                     "key_sf",
                                                     "key_sr",
                                                     "key_stab",
                                                     "key_up",
                                                     "keypad_local",
                                                     "keypad_xmit",
                                                     "lab_f0",
                                                     "lab_f1",
                                                     "lab_f10",
                                                     "lab_f2",
                                                     "lab_f3",
                                                     "lab_f4",
                                                     "lab_f5",
                                                     "lab_f6",
                                                     "lab_f7",
                                                     "lab_f8",
                                                     "lab_f9",
                                                     "meta_off",
                                                     "meta_on",
                                                     "newline",
                                                     "pad_char",
                                                     "parm_dch",
                                                     "parm_delete_line",
                                                     "parm_down_cursor",
                                                     "parm_ich",
                                                     "parm_index",
                                                     "parm_insert_line",
                                                     "parm_left_cursor",
                                                     "parm_right_cursor",
                                                     "parm_rindex",
                                                     "parm_up_cursor",
                                                     "pkey_key",
                                                     "pkey_local",
                                                     "pkey_xmit",
                                                     "print_screen",
                                                     "prtr_off",
                                                     "prtr_on",
                                                     "repeat_char",
                                                     "reset_1string",
                                                     "reset_2string",
                                                     "reset_3string",
                                                     "reset_file",
                                                     "restore_cursor",
                                                     "row_address",
                                                     "save_cursor",
                                                     "scroll_forward",
                                                     "scroll_reverse",
                                                     "set_attributes",
                                                     "set_tab",
                                                     "set_window",
                                                     "tab",
                                                     "to_status_line",
                                                     "underline_char",
                                                     "up_half_line",
                                                     "init_prog",
                                                     "key_a1",
                                                     "key_a3",
                                                     "key_b2",
                                                     "key_c1",
                                                     "key_c3",
                                                     "prtr_non",
                                                     "char_padding",
                                                     "acs_chars",
                                                     "plab_norm",
                                                     "key_btab",
                                                     "enter_xon_mode",
                                                     "exit_xon_mode",
                                                     "enter_am_mode",
                                                     "exit_am_mode",
                                                     "xon_character",
                                                     "xoff_character",
                                                     "ena_acs",
                                                     "label_on",
                                                     "label_off",
                                                     "key_beg",
                                                     "key_cancel",
                                                     "key_close",
                                                     "key_command",
                                                     "key_copy",
                                                     "key_create",
                                                     "key_end",
                                                     "key_enter",
                                                     "key_exit",
                                                     "key_find",
                                                     "key_help",
                                                     "key_mark",
                                                     "key_message",
                                                     "key_move",
                                                     "key_next",
                                                     "key_open",
                                                     "key_options",
                                                     "key_previous",
                                                     "key_print",
                                                     "key_redo",
                                                     "key_reference",
                                                     "key_refresh",
                                                     "key_replace",
                                                     "key_restart",
                                                     "key_resume",
                                                     "key_save",
                                                     "key_suspend",
                                                     "key_undo",
                                                     "key_sbeg",
                                                     "key_scancel",
                                                     "key_scommand",
                                                     "key_scopy",
                                                     "key_screate",
                                                     "key_sdc",
                                                     "key_sdl",
                                                     "key_select",
                                                     "key_send",
                                                     "key_seol",
                                                     "key_sexit",
                                                     "key_sfind",
                                                     "key_shelp",
                                                     "key_shome",
                                                     "key_sic",
                                                     "key_sleft",
                                                     "key_smessage",
                                                     "key_smove",
                                                     "key_snext",
                                                     "key_soptions",
                                                     "key_sprevious",
                                                     "key_sprint",
                                                     "key_sredo",
                                                     "key_sreplace",
                                                     "key_sright",
                                                     "key_srsume",
                                                     "key_ssave",
                                                     "key_ssuspend",
                                                     "key_sundo",
                                                     "req_for_input",
                                                     "key_f11",
                                                     "key_f12",
                                                     "key_f13",
                                                     "key_f14",
                                                     "key_f15",
                                                     "key_f16",
                                                     "key_f17",
                                                     "key_f18",
                                                     "key_f19",
                                                     "key_f20",
                                                     "key_f21",
                                                     "key_f22",
                                                     "key_f23",
                                                     "key_f24",
                                                     "key_f25",
                                                     "key_f26",
                                                     "key_f27",
                                                     "key_f28",
                                                     "key_f29",
                                                     "key_f30",
                                                     "key_f31",
                                                     "key_f32",
                                                     "key_f33",
                                                     "key_f34",
                                                     "key_f35",
                                                     "key_f36",
                                                     "key_f37",
                                                     "key_f38",
                                                     "key_f39",
                                                     "key_f40",
                                                     "key_f41",
                                                     "key_f42",
                                                     "key_f43",
                                                     "key_f44",
                                                     "key_f45",
                                                     "key_f46",
                                                     "key_f47",
                                                     "key_f48",
                                                     "key_f49",
                                                     "key_f50",
                                                     "key_f51",
                                                     "key_f52",
                                                     "key_f53",
                                                     "key_f54",
                                                     "key_f55",
                                                     "key_f56",
                                                     "key_f57",
                                                     "key_f58",
                                                     "key_f59",
                                                     "key_f60",
                                                     "key_f61",
                                                     "key_f62",
                                                     "key_f63",
                                                     "clr_bol",
                                                     "clear_margins",
                                                     "set_left_margin",
                                                     "set_right_margin",
                                                     "label_format",
                                                     "set_clock",
                                                     "display_clock",
                                                     "remove_clock",
                                                     "create_window",
                                                     "goto_window",
                                                     "hangup",
                                                     "dial_phone",
                                                     "quick_dial",
                                                     "tone",
                                                     "pulse",
                                                     "flash_hook",
                                                     "fixed_pause",
                                                     "wait_tone",
                                                     "user0",
                                                     "user1",
                                                     "user2",
                                                     "user3",
                                                     "user4",
                                                     "user5",
                                                     "user6",
                                                     "user7",
                                                     "user8",
                                                     "user9",
                                                     "orig_pair",
                                                     "orig_colors",
                                                     "initialize_color",
                                                     "initialize_pair",
                                                     "set_color_pair",
                                                     "set_foreground",
                                                     "set_background",
                                                     "change_char_pitch",
                                                     "change_line_pitch",
                                                     "change_res_horz",
                                                     "change_res_vert",
                                                     "define_char",
                                                     "enter_doublewide_mode",
                                                     "enter_draft_quality",
                                                     "enter_italics_mode",
                                                     "enter_leftward_mode",
                                                     "enter_micro_mode",
                                                     "enter_near_letter_quality",
                                                     "enter_normal_quality",
                                                     "enter_shadow_mode",
                                                     "enter_subscript_mode",
                                                     "enter_superscript_mode",
                                                     "enter_upward_mode",
                                                     "exit_doublewide_mode",
                                                     "exit_italics_mode",
                                                     "exit_leftward_mode",
                                                     "exit_micro_mode",
                                                     "exit_shadow_mode",
                                                     "exit_subscript_mode",
                                                     "exit_superscript_mode",
                                                     "exit_upward_mode",
                                                     "micro_column_address",
                                                     "micro_down",
                                                     "micro_left",
                                                     "micro_right",
                                                     "micro_row_address",
                                                     "micro_up",
                                                     "order_of_pins",
                                                     "parm_down_micro",
                                                     "parm_left_micro",
                                                     "parm_right_micro",
                                                     "parm_up_micro",
                                                     "select_char_set",
                                                     "set_bottom_margin",
                                                     "set_bottom_margin_parm",
                                                     "set_left_margin_parm",
                                                     "set_right_margin_parm",
                                                     "set_top_margin",
                                                     "set_top_margin_parm",
                                                     "start_bit_image",
                                                     "start_char_set_def",
                                                     "stop_bit_image",
                                                     "stop_char_set_def",
                                                     "subscript_characters",
                                                     "superscript_characters",
                                                     "these_cause_cr",
                                                     "zero_motion",
                                                     "char_set_names",
                                                     "key_mouse",
                                                     "mouse_info",
                                                     "req_mouse_pos",
                                                     "get_mouse",
                                                     "set_a_foreground",
                                                     "set_a_background",
                                                     "pkey_plab",
                                                     "device_type",
                                                     "code_set_init",
                                                     "set0_des_seq",
                                                     "set1_des_seq",
                                                     "set2_des_seq",
                                                     "set3_des_seq",
                                                     "set_lr_margin",
                                                     "set_tb_margin",
                                                     "bit_image_repeat",
                                                     "bit_image_newline",
                                                     "bit_image_carriage_return",
                                                     "color_names",
                                                     "define_bit_image_region",
                                                     "end_bit_image_region",
                                                     "set_color_band",
                                                     "set_page_length",
                                                     "display_pc_char",
                                                     "enter_pc_charset_mode",
                                                     "exit_pc_charset_mode",
                                                     "enter_scancode_mode",
                                                     "exit_scancode_mode",
                                                     "pc_term_options",
                                                     "scancode_escape",
                                                     "alt_scancode_esc",
                                                     "enter_horizontal_hl_mode",
                                                     "enter_left_hl_mode",
                                                     "enter_low_hl_mode",
                                                     "enter_right_hl_mode",
                                                     "enter_top_hl_mode",
                                                     "enter_vertical_hl_mode",
                                                     "set_a_attributes",
                                                     "set_pglen_inch",
                                                     "termcap_init2",
                                                     "termcap_reset",
                                                     "linefeed_if_not_lf",
                                                     "backspace_if_not_bs",
                                                     "other_non_function_keys",
                                                     "arrow_key_map",
                                                     "acs_ulcorner",
                                                     "acs_llcorner",
                                                     "acs_urcorner",
                                                     "acs_lrcorner",
                                                     "acs_ltee",
                                                     "acs_rtee",
                                                     "acs_btee",
                                                     "acs_ttee",
                                                     "acs_hline",
                                                     "acs_vline",
                                                     "acs_plus",
                                                     "memory_lock",
                                                     "memory_unlock",
                                                     "box_chars_1"];

pub static stringnames: &'static [&'static str] =
    &["cbt", "bel", "cr", "csr", "tbc", "clear", "el", "ed", "hpa", "cmdch", "cup", "cud1",
      "home", "civis", "cub1", "mrcup", "cnorm", "cuf1", "ll", "cuu1", "cvvis", "dch1", "dl1",
      "dsl", "hd", "smacs", "blink", "bold", "smcup", "smdc", "dim", "smir", "invis", "prot",
      "rev", "smso", "smul", "ech", "rmacs", "sgr0", "rmcup", "rmdc", "rmir", "rmso", "rmul",
      "flash", "ff", "fsl", "is1", "is2", "is3", "if", "ich1", "il1", "ip", "kbs", "ktbc", "kclr",
      "kctab", "kdch1", "kdl1", "kcud1", "krmir", "kel", "ked", "kf0", "kf1", "kf10", "kf2",
      "kf3", "kf4", "kf5", "kf6", "kf7", "kf8", "kf9", "khome", "kich1", "kil1", "kcub1", "kll",
      "knp", "kpp", "kcuf1", "kind", "kri", "khts", "kcuu1", "rmkx", "smkx", "lf0", "lf1", "lf10",
      "lf2", "lf3", "lf4", "lf5", "lf6", "lf7", "lf8", "lf9", "rmm", "smm", "nel", "pad", "dch",
      "dl", "cud", "ich", "indn", "il", "cub", "cuf", "rin", "cuu", "pfkey", "pfloc", "pfx",
      "mc0", "mc4", "mc5", "rep", "rs1", "rs2", "rs3", "rf", "rc", "vpa", "sc", "ind", "ri",
      "sgr", "hts", "wind", "ht", "tsl", "uc", "hu", "iprog", "ka1", "ka3", "kb2", "kc1", "kc3",
      "mc5p", "rmp", "acsc", "pln", "kcbt", "smxon", "rmxon", "smam", "rmam", "xonc", "xoffc",
      "enacs", "smln", "rmln", "kbeg", "kcan", "kclo", "kcmd", "kcpy", "kcrt", "kend", "kent",
      "kext", "kfnd", "khlp", "kmrk", "kmsg", "kmov", "knxt", "kopn", "kopt", "kprv", "kprt",
      "krdo", "kref", "krfr", "krpl", "krst", "kres", "ksav", "kspd", "kund", "kBEG", "kCAN",
      "kCMD", "kCPY", "kCRT", "kDC", "kDL", "kslt", "kEND", "kEOL", "kEXT", "kFND", "kHLP",
      "kHOM", "kIC", "kLFT", "kMSG", "kMOV", "kNXT", "kOPT", "kPRV", "kPRT", "kRDO", "kRPL",
      "kRIT", "kRES", "kSAV", "kSPD", "kUND", "rfi", "kf11", "kf12", "kf13", "kf14", "kf15",
      "kf16", "kf17", "kf18", "kf19", "kf20", "kf21", "kf22", "kf23", "kf24", "kf25", "kf26",
      "kf27", "kf28", "kf29", "kf30", "kf31", "kf32", "kf33", "kf34", "kf35", "kf36", "kf37",
      "kf38", "kf39", "kf40", "kf41", "kf42", "kf43", "kf44", "kf45", "kf46", "kf47", "kf48",
      "kf49", "kf50", "kf51", "kf52", "kf53", "kf54", "kf55", "kf56", "kf57", "kf58", "kf59",
      "kf60", "kf61", "kf62", "kf63", "el1", "mgc", "smgl", "smgr", "fln", "sclk", "dclk",
      "rmclk", "cwin", "wingo", "hup", "dial", "qdial", "tone", "pulse", "hook", "pause", "wait",
      "u0", "u1", "u2", "u3", "u4", "u5", "u6", "u7", "u8", "u9", "op", "oc", "initc", "initp",
      "scp", "setf", "setb", "cpi", "lpi", "chr", "cvr", "defc", "swidm", "sdrfq", "sitm", "slm",
      "smicm", "snlq", "snrmq", "sshm", "ssubm", "ssupm", "sum", "rwidm", "ritm", "rlm", "rmicm",
      "rshm", "rsubm", "rsupm", "rum", "mhpa", "mcud1", "mcub1", "mcuf1", "mvpa", "mcuu1",
      "porder", "mcud", "mcub", "mcuf", "mcuu", "scs", "smgb", "smgbp", "smglp", "smgrp", "smgt",
      "smgtp", "sbim", "scsd", "rbim", "rcsd", "subcs", "supcs", "docr", "zerom", "csnm", "kmous",
      "minfo", "reqmp", "getm", "setaf", "setab", "pfxl", "devt", "csin", "s0ds", "s1ds", "s2ds",
      "s3ds", "smglr", "smgtb", "birep", "binel", "bicr", "colornm", "defbi", "endbi", "setcolor",
      "slines", "dispc", "smpch", "rmpch", "smsc", "rmsc", "pctrm", "scesc", "scesa", "ehhlm",
      "elhlm", "elohlm", "erhlm", "ethlm", "evhlm", "sgr1", "slength", "OTi2", "OTrs", "OTnl",
      "OTbs", "OTko", "OTma", "OTG2", "OTG3", "OTG1", "OTG4", "OTGR", "OTGL", "OTGU", "OTGD",
      "OTGH", "OTGV", "OTGC", "meml", "memu", "box1"];