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
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
impl_enum! {
/// String capabilities.
///
/// `#[1-9]` indicate parameters that can be passed to [`expand!`][crate::expand!].
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
#[repr(usize)]
#[non_exhaustive]
pub enum String {
/// `cbt`: Back tab
BackTab => ("cbt", "back_tab"),
/// `bel`: Audible signal (bell)
Bell => ("bel", "bell"),
/// `cr`: Carriage-return
CarriageReturn => ("cr", "carriage_return"),
/// `csr`: Change to lines #1 through #2 (VT100)
ChangeScrollRegion => ("csr", "change_scroll_region"),
/// `tbc`: Clear all tab stops
ClearAllTabs => ("tbc", "clear_all_tabs"),
/// `clear`: Clear screen and home cursor
ClearScreen => ("clear", "clear_screen"),
/// `el`: Clear to end of line
ClrEol => ("el", "clr_eol"),
/// `ed`: Clear to end of display
ClrEos => ("ed", "clr_eos"),
/// `hpa`: Set horizontal position to absolute #1
ColumnAddress => ("hpa", "column_address"),
/// `cmdch`: Terminal settable cmd character in prototype
CommandCharacter => ("cmdch", "command_character"),
/// `cup`: Move to row #1 col #2
CursorAddress => ("cup", "cursor_address"),
/// `cud1`: Down one line
CursorDown => ("cud1", "cursor_down"),
/// `home`: Home cursor (if no `cup`)
CursorHome => ("home", "cursor_home"),
/// `civis`: Make cursor invisible
CursorInvisible => ("civis", "cursor_invisible"),
/// `cub1`: Move left one space
CursorLeft => ("cub1", "cursor_left"),
/// `mrcup`: Memory-relative cursor addressing
CursorMemAddress => ("mrcup", "cursor_mem_address"),
/// `cnorm`: Make cursor appear normal (undo `cvvis`/`civis`)
CursorNormal => ("cnorm", "cursor_normal"),
/// `cuf1`: Non-destructive space (cursor or carriage right)
CursorRight => ("cuf1", "cursor_right"),
/// `ll`: Last line, first column (if no `cup`)
CursorToLl => ("ll", "cursor_to_ll"),
/// `cuu1`: Upline (cursor up)
CursorUp => ("cuu1", "cursor_up"),
/// `cvvis`: Make cursor very visible
CursorVisible => ("cvvis", "cursor_visible"),
/// `dch1`: Delete character
DeleteCharacter => ("dch1", "delete_character"),
/// `dl1`: Delete line
DeleteLine => ("dl1", "delete_line"),
/// `dsl`: Disable status line
DisStatusLine => ("dsl", "dis_status_line"),
/// `hd`: Half-line down (forward 1/2 linefeed)
DownHalfLine => ("hd", "down_half_line"),
/// `smacs`: Start alternate character set
EnterAltCharsetMode => ("smacs", "enter_alt_charset_mode"),
/// `blink`: Turn on blinking
EnterBlinkMode => ("blink", "enter_blink_mode"),
/// `bold`: Turn on bold (extra bright) mode
EnterBoldMode => ("bold", "enter_bold_mode"),
/// `smcup`: String to begin programs that use `cup`
EnterCaMode => ("smcup", "enter_ca_mode"),
/// `smdc`: Delete mode (enter)
EnterDeleteMode => ("smdc", "enter_delete_mode"),
/// `dim`: Turn on half-bright mode
EnterDimMode => ("dim", "enter_dim_mode"),
/// `smir`: Insert mode (enter)
EnterInsertMode => ("smir", "enter_insert_mode"),
/// `invis`: Turn on blank mode (characters invisible)
EnterSecureMode => ("invis", "enter_secure_mode"),
/// `prot`: Turn on protected mode
EnterProtectedMode => ("prot", "enter_protected_mode"),
/// `rev`: Turn on reverse video mode
EnterReverseMode => ("rev", "enter_reverse_mode"),
/// `smso`: Begin standout mode
EnterStandoutMode => ("smso", "enter_standout_mode"),
/// `smul`: Start underscore mode
EnterUnderlineMode => ("smul", "enter_underline_mode"),
/// `ech`: Erase #1 characters
EraseChars => ("ech", "erase_chars"),
/// `rmacs`: End alternate character set
ExitAltCharsetMode => ("rmacs", "exit_alt_charset_mode"),
/// `sgr0`: Turn off all attributes
ExitAttributeMode => ("sgr0", "exit_attribute_mode"),
/// `rmcup`: String to end programs that use `cup`
ExitCaMode => ("rmcup", "exit_ca_mode"),
/// `rmdc`: End delete mode
ExitDeleteMode => ("rmdc", "exit_delete_mode"),
/// `rmir`: End insert mode
ExitInsertMode => ("rmir", "exit_insert_mode"),
/// `rmso`: End standout mode
ExitStandoutMode => ("rmso", "exit_standout_mode"),
/// `rmul`: End underscore mode
ExitUnderlineMode => ("rmul", "exit_underline_mode"),
/// `flash`: Visible bell (may move cursor)
FlashScreen => ("flash", "flash_screen"),
/// `ff`: Hardcopy terminal page eject
FormFeed => ("ff", "form_feed"),
/// `fsl`: Return from status line
FromStatusLine => ("fsl", "from_status_line"),
/// `is1`: Terminal or printer initialization string
Init1String => ("is1", "init_1string"),
/// `is2`: Terminal or printer initialization string
Init2String => ("is2", "init_2string"),
/// `is3`: Terminal or printer initialization string
Init3String => ("is3", "init_3string"),
/// `if`: Name of initialization file
InitFile => ("if", "init_file"),
/// `ich1`: Insert character
InsertCharacter => ("ich1", "insert_character"),
/// `il1`: Add new blank line
InsertLine => ("il1", "insert_line"),
/// `ip`: Insert pad after character inserted
InsertPadding => ("ip", "insert_padding"),
/// `kbs`: Sent by backspace key
KeyBackspace => ("kbs", "key_backspace"),
/// `ktbc`: Sent by clear-all-tabs key
KeyCatab => ("ktbc", "key_catab"),
/// `kclr`: Sent by clear-screen or erase key
KeyClear => ("kclr", "key_clear"),
/// `kctab`: Sent by clear-tab key
KeyCtab => ("kctab", "key_ctab"),
/// `kdch1`: Sent by delete-character key
KeyDc => ("kdch1", "key_dc"),
/// `kdl1`: Sent by delete-line key
KeyDl => ("kdl1", "key_dl"),
/// `kcud1`: Sent by terminal down-arrow key
KeyDown => ("kcud1", "key_down"),
/// `krmir`: Sent by `rmir` or `smir` in insert mode
KeyEic => ("krmir", "key_eic"),
/// `kel`: Sent by clear-to-end-of-line key
KeyEol => ("kel", "key_eol"),
/// `ked`: Sent by clear-to-end-of-screen key
KeyEos => ("ked", "key_eos"),
/// `f0`: Sent by function key f0
KeyF0 => ("kf0", "key_f0"),
/// `f1`: Sent by function key f1
KeyF1 => ("kf1", "key_f1"),
/// `f10`: Sent by function key f10
KeyF10 => ("kf10", "key_f10"),
/// `f2`: Sent by function key f2
KeyF2 => ("kf2", "key_f2"),
/// `f3`: Sent by function key f3
KeyF3 => ("kf3", "key_f3"),
/// `f4`: Sent by function key f4
KeyF4 => ("kf4", "key_f4"),
/// `f5`: Sent by function key f5
KeyF5 => ("kf5", "key_f5"),
/// `f6`: Sent by function key f6
KeyF6 => ("kf6", "key_f6"),
/// `f7`: Sent by function key f7
KeyF7 => ("kf7", "key_f7"),
/// `f8`: Sent by function key f8
KeyF8 => ("kf8", "key_f8"),
/// `f9`: Sent by function key f9
KeyF9 => ("kf9", "key_f9"),
/// `khome`: Sent by home key
KeyHome => ("khome", "key_home"),
/// `kich1`: Sent by ins-char/enter ins-mode key
KeyIc => ("kich1", "key_ic"),
/// `kil1`: Sent by insert-line key
KeyIl => ("kil1", "key_il"),
/// `kcub1 `: Sent by terminal left-arrow key
KeyLeft => ("kcub1", "key_left"),
/// `kll`: Sent by home-down key
KeyLl => ("kll", "key_ll"),
/// `knp`: Sent by next-page key
KeyNpage => ("knp", "key_npage"),
/// `kpp`: Sent by previous-page key
KeyPpage => ("kpp", "key_ppage"),
/// `kcuf1`: Sent by terminal right-arrow key
KeyRight => ("kcuf1", "key_right"),
/// `kind`: Sent by scroll-forward/down key
KeySf => ("kind", "key_sf"),
/// `kri`: Sent by scroll-backward/up key
KeySr => ("kri", "key_sr"),
/// `khts`: Sent by set-tab key
KeyStab => ("khts", "key_stab"),
/// `kcuu1`: Sent by terminal up-arrow key
KeyUp => ("kcuu1", "key_up"),
/// `rmkx`: Out of "keypad-transmit" mode
KeypadLocal => ("rmkx", "keypad_local"),
/// `smkx`: Put terminal in "keypad-transmit" mode
KeypadXmit => ("smkx", "keypad_xmit"),
/// `f0`: Labels on function key f0 if not f0
LabF0 => ("lf0", "lab_f0"),
/// `f1`: Labels on function key f1 if not f1
LabF1 => ("lf1", "lab_f1"),
/// `f10`: Labels on function key f10 if not f10
LabF10 => ("lf10", "lab_f10"),
/// `f2`: Labels on function key f2 if not f2
LabF2 => ("lf2", "lab_f2"),
/// `f3`: Labels on function key f3 if not f3
LabF3 => ("lf3", "lab_f3"),
/// `f4`: Labels on function key f4 if not f4
LabF4 => ("lf4", "lab_f4"),
/// `f5`: Labels on function key f5 if not f5
LabF5 => ("lf5", "lab_f5"),
/// `f6`: Labels on function key f6 if not f6
LabF6 => ("lf6", "lab_f6"),
/// `f7`: Labels on function key f7 if not f7
LabF7 => ("lf7", "lab_f7"),
/// `f8`: Labels on function key f8 if not f8
LabF8 => ("lf8", "lab_f8"),
/// `f9`: Labels on function key f9 if not f9
LabF9 => ("lf9", "lab_f9"),
/// `rmm`: Turn off "meta mode"
MetaOff => ("rmm", "meta_off"),
/// `smm`: Turn on "meta mode" (8th bit)
MetaOn => ("smm", "meta_on"),
/// `nel`: Newline (behaves like `cr` followed by `lf`)
Newline => ("nel", "newline"),
/// `pad`: Pad character (rather than null)
PadChar => ("pad", "pad_char"),
/// `dch`: Delete #1 chars
ParmDch => ("dch", "parm_dch"),
/// `dl`: Delete #1 lines
ParmDeleteLine => ("dl", "parm_delete_line"),
/// `cud`: Move down #1 lines
ParmDownCursor => ("cud", "parm_down_cursor"),
/// `ich`: Insert #1 \<blank\> chars
ParmIch => ("ich", "parm_ich"),
/// `indn`: Scroll forward #1 lines.
ParmIndex => ("indn", "parm_index"),
/// `il`: Add #1 new blank lines
ParmInsertLine => ("il", "parm_insert_line"),
/// `cub`: Move cursor left #1 spaces
ParmLeftCursor => ("cub", "parm_left_cursor"),
/// `cuf`: Move right #1 spaces.
ParmRightCursor => ("cuf", "parm_right_cursor"),
/// `rin`: Scroll backward #1 lines.
ParmRindex => ("rin", "parm_rindex"),
/// `cuu`: Move cursor up #1 lines.
ParmUpCursor => ("cuu", "parm_up_cursor"),
/// `pfkey`: Prog funct key #1 to type string #2
PkeyKey => ("pfkey", "pkey_key"),
/// `pfloc`: Prog funct key #1 to execute string #2
PkeyLocal => ("pfloc", "pkey_local"),
/// `pfx`: Prog label #1 to show string #2
PkeyXmit => ("pfx", "pkey_xmit"),
/// `mc0`: Print contents of the screen
PrintScreen => ("mc0", "print_screen"),
/// `mc4`: Turn off the printer
PrtrOff => ("mc4", "prtr_off"),
/// `mc5` Turn on the printer
PrtrOn => ("mc5", "prtr_on"),
/// `rep`: Repeat char #1 #2 times
RepeatChar => ("rep", "repeat_char"),
/// `rs1`: Reset terminal completely to sane modes
Reset1String => ("rs1", "reset_1string"),
/// `rs2`: Reset terminal completely to sane modes
Reset2String => ("rs2", "reset_2string"),
/// `rs3`: Reset terminal completely to sane modes
Reset3String => ("rs3", "reset_3string"),
/// `rf`: Name of file containing reset string
ResetFile => ("rf", "reset_file"),
/// `rc`: Restore cursor to position of last `sc`
RestoreCursor => ("rc", "restore_cursor"),
/// `vpa`: Set vertical position to absolute #1
RowAddress => ("vpa", "row_address"),
/// `sc`: Save cursor position
SaveCursor => ("sc", "save_cursor"),
/// `ind`: Scroll text up
ScrollForward => ("ind", "scroll_forward"),
/// `ri`: Scroll text down
ScrollReverse => ("ri", "scroll_reverse"),
/// `sgr`: Define first set of video attributes #1-#9
SetAttributes => ("sgr", "set_attributes"),
/// `hts`: Set a tab in all rows, current column
SetTab => ("hts", "set_tab"),
/// `wind`: Current window is lines #1-#2 cols #3-#4
SetWindow => ("wind", "set_window"),
/// `ht`: Tab to next 8-space hardware tab stop
Tab => ("ht", "tab"),
/// `tsl`: Go to status line, col #1
ToStatusLine => ("tsl", "to_status_line"),
/// `uc`: Underscore one char and move past it
UnderlineChar => ("uc", "underline_char"),
/// `hu`: Half-line up (reverse 1/2 linefeed)
UpHalfLine => ("hu", "up_half_line"),
/// `iprog`: Path name of program for initialization
InitProg => ("iprog", "init_prog"),
/// `ka1`: Upper left of keypad
KeyA1 => ("ka1", "key_a1"),
/// `ka3`: Upper right of keypad
KeyA3 => ("ka3", "key_a3"),
/// `kb2`: Center of keypad
KeyB2 => ("kb2", "key_b2"),
/// `kc1`: Lower left of keypad
KeyC1 => ("kc1", "key_c1"),
/// `kc3`: Lower right of keypad
KeyC3 => ("kc3", "key_c3"),
/// `mc5p`: Turn on the printer for #1 bytes
PrtrNon => ("mc5p", "prtr_non"),
/// `rmp`: Like `ip` but when in replace mode
CharPadding => ("rmp", "char_padding"),
/// `acsc`: Graphic charset pairs aAbBcC
AcsChars => ("acsc", "acs_chars"),
/// `pln`: Prog label #1 to show string #2
PlabNorm => ("pln", "plab_norm"),
/// `kcbt`: Sent by back-tab key
KeyBtab => ("kcbt", "key_btab"),
/// `smxon`: Turn on xon/xoff handshaking
EnterXonMode => ("smxon", "enter_xon_mode"),
/// `rmxon`: Turn off xon/xoff handshaking
ExitXonMode => ("rmxon", "exit_xon_mode"),
/// `smam`: Turn on automatic margins
EnterAmMode => ("smam", "enter_am_mode"),
/// `rmam`: Turn off automatic margins
ExitAmMode => ("rmam", "exit_am_mode"),
/// `xonc`: X-on character
XonCharacter => ("xonc", "xon_character"),
/// `xoffc`: X-off character
XoffCharacter => ("xoffc", "xoff_character"),
/// `enacs`: Enable alternate character set
EnaAcs => ("enacs", "ena_acs"),
/// `smln`: Turn on soft labels
LabelOn => ("smln", "label_on"),
/// `rmln`: Turn off soft labels
LabelOff => ("rmln", "label_off"),
/// `kbeg`: Sent by beg(inning) key
KeyBeg => ("kbeg", "key_beg"),
/// `kcan`: Sent by cancel key
KeyCancel => ("kcan", "key_cancel"),
/// `kclo`: Sent by close key
KeyClose => ("kclo", "key_close"),
/// `kcmd`: Sent by cmd (command) key
KeyCommand => ("kcmd", "key_command"),
/// `kcpy`: Sent by copy key
KeyCopy => ("kcpy", "key_copy"),
/// `kcrt`: Sent by create key
KeyCreate => ("kcrt", "key_create"),
/// `kend`: Sent by end key
KeyEnd => ("kend", "key_end"),
/// `kent`: Sent by enter / send key
KeyEnter => ("kent", "key_enter"),
/// `kext`: Sent by exit key
KeyExit => ("kext", "key_exit"),
/// `kfnd`: Sent by find key
KeyFind => ("kfnd", "key_find"),
/// `khlp`: Sent by help key
KeyHelp => ("khlp", "key_help"),
/// `kmrk`: Sent by mark key
KeyMark => ("kmrk", "key_mark"),
/// `kmsg`: Sent by message key
KeyMessage => ("kmsg", "key_message"),
/// `kmov`: Sent by move key
KeyMove => ("kmov", "key_move"),
/// `knxt`: Sent by next-object key
KeyNext => ("knxt", "key_next"),
/// `kopn`: Sent by open key
KeyOpen => ("kopn", "key_open"),
/// `kopt`: Sent by options key
KeyOptions => ("kopt", "key_options"),
/// `kprv`: Sent by previous-object key
KeyPrevious => ("kprv", "key_previous"),
/// `kprt`: Sent by print or copy key
KeyPrint => ("kprt", "key_print"),
/// `krdo`: Sent by redo key
KeyRedo => ("krdo", "key_redo"),
/// `kref`: Sent by ref(erence) key
KeyReference => ("kref", "key_reference"),
/// `krfr`: Sent by refresh key
KeyRefresh => ("krfr", "key_refresh"),
/// `krpl`: Sent by replace key
KeyReplace => ("krpl", "key_replace"),
/// `krst`: Sent by restart key
KeyRestart => ("krst", "key_restart"),
/// `kres`: Sent by resume key
KeyResume => ("kres", "key_resume"),
/// `ksav`: Sent by save key
KeySave => ("ksav", "key_save"),
/// `kspd`: Sent by suspend key
KeySuspend => ("kspd", "key_suspend"),
/// `kund`: Sent by undo key
KeyUndo => ("kund", "key_undo"),
/// `kBEG`: Sent by shifted beginning key
KeySBeg => ("kBEG", "key_sbeg"),
/// `kCAN`: Sent by shifted cancel key
KeySCancel => ("kCAN", "key_scancel"),
/// `kCMD`: Sent by shifted command key
KeySCommand => ("kCMD", "key_scommand"),
/// `kCPY`: Sent by shifted copy key
KeySCopy => ("kCPY", "key_scopy"),
/// `kCRT`: Sent by shifted create key
KeySCreate => ("kCRT", "key_screate"),
/// `kDC`: Sent by shifted delete-char key
KeySDc => ("kDC", "key_sdc"),
/// `kDL`: Sent by shifted delete-line key
KeySDl => ("kDL", "key_sdl"),
/// `kslt`: Sent by select key
KeySelect => ("kslt", "key_select"),
/// `kEND`: Sent by shifted end key
KeySEnd => ("kEND", "key_send"),
/// `kEOL`: Sent by shifted clear-line key
KeySEol => ("kEOL", "key_seol"),
/// `kEXT`: Sent by shifted exit key
KeySExit => ("kEXT", "key_sexit"),
/// `kFND`: Sent by shifted find key
KeySFind => ("kFND", "key_sfind"),
/// `kHLP`: Sent by shifted help key
KeySHelp => ("kHLP", "key_shelp"),
/// `kHOM`: Sent by shifted home key
KeySHome => ("kHOM", "key_shome"),
/// `kIC`: Sent by shifted input key
KeySIc => ("kIC", "key_sic"),
/// `kLFT`: Sent by shifted left-arrow key
KeySLeft => ("kLFT", "key_sleft"),
/// `kMSG`: Sent by shifted message key
KeySMessage => ("kMSG", "key_smessage"),
/// `kMOV`: Sent by shifted move key
KeySMove => ("kMOV", "key_smove"),
/// `kNXT`: Sent by shifted next key
KeySNext => ("kNXT", "key_snext"),
/// `kOPT`: Sent by shifted options key
KeySOptions => ("kOPT", "key_soptions"),
/// `kPRV`: Sent by shifted prev key
KeySPrevious => ("kPRV", "key_sprevious"),
/// `kPRT`: Sent by shifted print key
KeySPrint => ("kPRT", "key_sprint"),
/// `kRDO`: Sent by shifted redo key
KeySRedo => ("kRDO", "key_sredo"),
/// `kRPL`: Sent by shifted replace key
KeySReplace => ("kRPL", "key_sreplace"),
/// `kRIT`: Sent by shifted right-arrow key
KeySRight => ("kRIT", "key_sright"),
/// `kRES`: Sent by shifted resume key
KeySResume => ("kRES", "key_srsume"),
/// `kSAV`: Sent by shifted save key
KeySSave => ("kSAV", "key_ssave"),
/// `kSPD`: Sent by shifted suspend key
KeySSuspend => ("kSPD", "key_ssuspend"),
/// `kUND`: Sent by shifted undo key
KeySUndo => ("kUND", "key_sundo"),
/// `rfi`: Sent next input char (for ptys)
ReqForInput => ("rfi", "req_for_input"),
/// `f11`: Sent by function key f11
KeyF11 => ("kf11", "key_f11"),
/// `f12`: Sent by function key f12
KeyF12 => ("kf12", "key_f12"),
/// `f13`: Sent by function key f13
KeyF13 => ("kf13", "key_f13"),
/// `f14`: Sent by function key f14
KeyF14 => ("kf14", "key_f14"),
/// `f15`: Sent by function key f15
KeyF15 => ("kf15", "key_f15"),
/// `f16`: Sent by function key f16
KeyF16 => ("kf16", "key_f16"),
/// `f17`: Sent by function key f17
KeyF17 => ("kf17", "key_f17"),
/// `f18`: Sent by function key f18
KeyF18 => ("kf18", "key_f18"),
/// `f19`: Sent by function key f19
KeyF19 => ("kf19", "key_f19"),
/// `f20`: Sent by function key f20
KeyF20 => ("kf20", "key_f20"),
/// `f21`: Sent by function key f21
KeyF21 => ("kf21", "key_f21"),
/// `f22`: Sent by function key f22
KeyF22 => ("kf22", "key_f22"),
/// `f23`: Sent by function key f23
KeyF23 => ("kf23", "key_f23"),
/// `f24`: Sent by function key f24
KeyF24 => ("kf24", "key_f24"),
/// `f25`: Sent by function key f25
KeyF25 => ("kf25", "key_f25"),
/// `f26`: Sent by function key f26
KeyF26 => ("kf26", "key_f26"),
/// `f27`: Sent by function key f27
KeyF27 => ("kf27", "key_f27"),
/// `f28`: Sent by function key f28
KeyF28 => ("kf28", "key_f28"),
/// `f29`: Sent by function key f29
KeyF29 => ("kf29", "key_f29"),
/// `f30`: Sent by function key f30
KeyF30 => ("kf30", "key_f30"),
/// `f31`: Sent by function key f31
KeyF31 => ("kf31", "key_f31"),
/// `f32`: Sent by function key f32
KeyF32 => ("kf32", "key_f32"),
/// `f33`: Sent by function key f33
KeyF33 => ("kf33", "key_f33"),
/// `f34`: Sent by function key f34
KeyF34 => ("kf34", "key_f34"),
/// `f35`: Sent by function key f35
KeyF35 => ("kf35", "key_f35"),
/// `f36`: Sent by function key f36
KeyF36 => ("kf36", "key_f36"),
/// `f37`: Sent by function key f37
KeyF37 => ("kf37", "key_f37"),
/// `f38`: Sent by function key f38
KeyF38 => ("kf38", "key_f38"),
/// `f39`: Sent by function key f39
KeyF39 => ("kf39", "key_f39"),
/// `f40`: Sent by function key f40
KeyF40 => ("kf40", "key_f40"),
/// `f41`: Sent by function key f41
KeyF41 => ("kf41", "key_f41"),
/// `f42`: Sent by function key f42
KeyF42 => ("kf42", "key_f42"),
/// `f43`: Sent by function key f43
KeyF43 => ("kf43", "key_f43"),
/// `f44`: Sent by function key f44
KeyF44 => ("kf44", "key_f44"),
/// `f45`: Sent by function key f45
KeyF45 => ("kf45", "key_f45"),
/// `f46`: Sent by function key f46
KeyF46 => ("kf46", "key_f46"),
/// `f47`: Sent by function key f47
KeyF47 => ("kf47", "key_f47"),
/// `f48`: Sent by function key f48
KeyF48 => ("kf48", "key_f48"),
/// `f49`: Sent by function key f49
KeyF49 => ("kf49", "key_f49"),
/// `f50`: Sent by function key f50
KeyF50 => ("kf50", "key_f50"),
/// `f51`: Sent by function key f51
KeyF51 => ("kf51", "key_f51"),
/// `f52`: Sent by function key f52
KeyF52 => ("kf52", "key_f52"),
/// `f53`: Sent by function key f53
KeyF53 => ("kf53", "key_f53"),
/// `f54`: Sent by function key f54
KeyF54 => ("kf54", "key_f54"),
/// `f55`: Sent by function key f55
KeyF55 => ("kf55", "key_f55"),
/// `f56`: Sent by function key f56
KeyF56 => ("kf56", "key_f56"),
/// `f57`: Sent by function key f57
KeyF57 => ("kf57", "key_f57"),
/// `f58`: Sent by function key f58
KeyF58 => ("kf58", "key_f58"),
/// `f59`: Sent by function key f59
KeyF59 => ("kf59", "key_f59"),
/// `f60`: Sent by function key f60
KeyF60 => ("kf60", "key_f60"),
/// `f61`: Sent by function key f61
KeyF61 => ("kf61", "key_f61"),
/// `f62`: Sent by function key f62
KeyF62 => ("kf62", "key_f62"),
/// `f63`: Sent by function key f63
KeyF63 => ("kf63", "key_f63"),
/// `el1`: Clear to beginning of line, inclusive
ClrBol => ("el1", "clr_bol"),
/// `mgc`: Clear all margins (top, bottom, and sides)
ClearMargins => ("mgc", "clear_margins"),
/// `smgl`: Set left margin at current column
SetLeftMargin => ("smgl", "set_left_margin"),
/// `smgr`: Set right margin at current column
SetRightMargin => ("smgr", "set_right_margin"),
/// `fln`: Label format
LabelFormat => ("fln", "label_format"),
/// `sclk`: Set clock to hours (#1), minutes (#2), seconds (#3)
SetClock => ("sclk", "set_clock"),
/// `dclk`: Display time-of-day clock
DisplayClock => ("dclk", "display_clock"),
/// `rmclk`: Remove time-of-day clock
RemoveClock => ("rmclk", "remove_clock"),
/// `cwin`: Define win #1 to go from #2, #3 to #4, #5
CreateWindow => ("cwin", "create_window"),
/// `wingo`: Go to window #1
GotoWindow => ("wingo", "goto_window"),
/// `hup`: Hang-up phone
Hangup => ("hup", "hangup"),
/// `dial`: Dial phone number #1
DialPhone => ("dial", "dial_phone"),
/// `qdial`: Dial phone number #1, without progress detection
QuickDial => ("qdial", "quick_dial"),
/// `tone`: Select touch tone dialing
Tone => ("tone"),
/// `pulse`: Select pulse dialing
Pulse => ("pulse"),
/// `hook`: Flash the switch hook
FlashHook => ("hook", "flash_hook"),
/// `pause`: Pause for 2-3 seconds
FixedPause => ("pause", "fixed_pause"),
/// `wait`: Wait for dial tone
WaitTone => ("wait", "wait_tone"),
/// `u0`: User string 0
User0 => ("u0", "user0"),
/// `u1`: User string 1
User1 => ("u1", "user1"),
/// `u2`: User string 2
User2 => ("u2", "user2"),
/// `u3`: User string 3
User3 => ("u3", "user3"),
/// `u4`: User string 4
User4 => ("u4", "user4"),
/// `u5`: User string 5
User5 => ("u5", "user5"),
/// `u6`: User string 6
User6 => ("u6", "user6"),
/// `u7`: User string 7
User7 => ("u7", "user7"),
/// `u8`: User string 8
User8 => ("u8", "user8"),
/// `u9`: User string 9
User9 => ("u9", "user9"),
/// `op`: Set default color-pair to the original one
OrigPair => ("op", "orig_pair"),
/// `oc`: Set all color(-pair)s to the original ones
OrigColors => ("oc", "orig_colors"),
/// `initc`: Set color #1 to RGB #2, #3, #4
InitializeColor => ("initc", "initialize_color"),
/// `initp`: Set color-pair #1 to fg #2, bg #3
InitializePair => ("initp", "initialize_pair"),
/// `scp`: Set current color pair to #1
SetColorPair => ("scp", "set_color_pair"),
/// `setf`: Set foreground color to #1
SetForeground => ("setf", "set_foreground"),
/// `setb`: Set background color to #1
SetBackground => ("setb", "set_background"),
/// `cpi`: Change number of characters per inch
ChangeCharPitch => ("cpi", "change_char_pitch"),
/// `lpi`: Change number of lines per inch
ChangeLinePitch => ("lpi", "change_line_pitch"),
/// `chr`: Change horizontal resolution
ChangeResHorz => ("chr", "change_res_horz"),
/// `cvr`: Change vertical resolution
ChangeResVert => ("cvr", "change_res_vert"),
/// `defc`: Define a character in a character set
DefineChar => ("defc", "define_char"),
/// `swidm`: Enable double wide printing
EnterDoublewideMode => ("swidm", "enter_doublewide_mode"),
/// `sdrfq`: Set draft quality print
EnterDraftQuality => ("sdrfq", "enter_draft_quality"),
/// `sitm`: Enable italics
EnterItalicsMode => ("sitm", "enter_italics_mode"),
/// `slm`: Enable leftward carriage motion
EnterLeftwardMode => ("slm", "enter_leftward_mode"),
/// `smicm`: Enable micro motion capabilities
EnterMicroMode => ("smicm", "enter_micro_mode"),
/// `snlq`: Set near-letter quality print
EnterNearLetterQuality => ("snlq", "enter_near_letter_quality"),
/// `snrmq`: Set normal quality print
EnterNormalQuality => ("snrmq", "enter_normal_quality"),
/// `sshm`: Enable shadow printing
EnterShadowMode => ("sshm", "enter_shadow_mode"),
/// `ssubm`: Enable subscript printing
EnterSubscriptMode => ("ssubm", "enter_subscript_mode"),
/// `ssupm`: Enable superscript printing
EnterSuperscriptMode => ("ssupm", "enter_superscript_mode"),
/// `sum`: Enable upward carriage motion
EnterUpwardMode => ("sum", "enter_upward_mode"),
/// `rwidm`: Disable double wide printing
ExitDoublewideMode => ("rwidm", "exit_doublewide_mode"),
/// `ritm`: Disable italics
ExitItalicsMode => ("ritm", "exit_italics_mode"),
/// `rlm`: Enable rightward (normal) carriage motion
ExitLeftwardMode => ("rlm", "exit_leftward_mode"),
/// `rmicm`: Disable micro motion capabilities
ExitMicroMode => ("rmicm", "exit_micro_mode"),
/// `rshm`: Disable shadow printing
ExitShadowMode => ("rshm", "exit_shadow_mode"),
/// `rsubm`: Disable subscript printing
ExitSubscriptMode => ("rsubm", "exit_subscript_mode"),
/// `rsupm`: Disable superscript printing
ExitSuperscriptMode => ("rsupm", "exit_superscript_mode"),
/// `rum`: Enable downward (normal) carriage motion
ExitUpwardMode => ("rum", "exit_upward_mode"),
/// `mhpa`: Like `column_address` for micro adjustment
MicroColumnAddress => ("mhpa", "micro_column_address"),
/// `mcud1`: Like `cursor_down` for micro adjustment
MicroDown => ("mcud1", "micro_down"),
/// `mcub1`: Like `cursor_left` for micro adjustment
MicroLeft => ("mcub1", "micro_left"),
/// `mcuf1`: Like `cursor_right` for micro adjustment
MicroRight => ("mcuf1", "micro_right"),
/// `mvpa`: Like `row_address` for micro adjustment
MicroRowAddress => ("mvpa", "micro_row_address"),
/// `mcuu1`: Like `cursor_up` for micro adjustment
MicroUp => ("mcuu1", "micro_up"),
/// `porder`: Matches software bits to print-head pins
OrderOfPins => ("porder", "order_of_pins"),
/// `mcud`: Like `parm_down_cursor` for micro adjust.
ParmDownMicro => ("mcud", "parm_down_micro"),
/// `mcub`: Like `parm_left_cursor` for micro adjust.
ParmLeftMicro => ("mcub", "parm_left_micro"),
/// `mcuf`: Like `parm_right_cursor` for micro adjust.
ParmRightMicro => ("mcuf", "parm_right_micro"),
/// `mcuu`: Like `parm_up_cursor` for micro adjust.
ParmUpMicro => ("mcuu", "parm_up_micro"),
/// `scs`: Select character set
SelectCharSet => ("scs", "select_char_set"),
/// `smgb`: Set bottom margin at current line
SetBottomMargin => ("smgb", "set_bottom_margin"),
/// `smgbp`: Set bottom margin at line #1 or #2 lines from bottom
SetBottomMarginParm => ("smgbp", "set_bottom_margin_parm"),
/// `smglp`: Set left (right) margin at column #1 (#2)
SetLeftMarginParm => ("smglp", "set_left_margin_parm"),
/// `smgrp`: Set right margin at column #1
SetRightMarginParm => ("smgrp", "set_right_margin_parm"),
/// `smgt`: Set top margin at current line
SetTopMargin => ("smgt", "set_top_margin"),
/// `smgtp`: Set top (bottom) margin at line #1 (#2)
SetTopMarginParm => ("smgtp", "set_top_margin_parm"),
/// `sbim`: Start printing bit image graphics
StartBitImage => ("sbim", "start_bit_image"),
/// `scsd`: Start definition of a character set
StartCharSetDef => ("scsd", "start_char_set_def"),
/// `rbim`: End printing bit image graphics
StopBitImage => ("rbim", "stop_bit_image"),
/// `rcsd`: End definition of a character set
StopCharSetDef => ("rcsd", "stop_char_set_def"),
/// `subcs`: List of "subscript-able" characters
SubscriptCharacters => ("subcs", "subscript_characters"),
/// `supcs`: List of "superscript-able" characters
SuperscriptCharacters => ("supcs", "superscript_characters"),
/// `docr`: Printing any of these chars causes `cr`
TheseCauseCr => ("docr", "these_cause_cr"),
/// `zerom`: No motion for the subsequent character
ZeroMotion => ("zerom", "zero_motion"),
/// `csnm`: Returns a list of character set names
CharSetNames => ("csnm", "char_set_names"),
/// `kmous`: 0631, Mouse event has occured
KeyMouse => ("kmous", "key_mouse"),
/// `minfo`: Mouse status information
MouseInfo => ("minfo", "mouse_info"),
/// `reqmp`: Request mouse position report
ReqMousePos => ("reqmp", "req_mouse_pos"),
/// `getm`: Curses should get button events
GetMouse => ("getm", "get_mouse"),
/// `setaf`: Set foreground color to #1 using ANSI escape
SetAForeground => ("setaf", "set_a_foreground"),
/// `setab`: Set foreground color to #1 using ANSI escape
SetABackground => ("setab", "set_a_background"),
/// `pfxl`: Prog key #1 to xmit string #2 and show string #3
PkeyPlab => ("pfxl", "pkey_plab"),
/// `devt`: Indicate language/codeset support
DeviceType => ("devt", "device_type"),
/// `csin`: Init sequence for multiple codesets
CodeSetInit => ("csin", "code_set_init"),
/// `s0ds`: Shift into codeset 0 (EUC set 0, ASCII)
Set0DesSeq => ("s0ds", "set0_des_seq"),
/// `s1ds`: Shift into codeset 1
Set1DesSeq => ("s1ds", "set1_des_seq"),
/// `s2ds`: Shift into codeset 2
Set2DesSeq => ("s2ds", "set2_des_seq"),
/// `s3ds`: Shift into codeset 3
Set3DesSeq => ("s3ds", "set3_des_seq"),
/// `smglr`: Set both left and right margins
SetLrMargin => ("smglr", "set_lr_margin"),
/// `smgtb`: Set both top and bottom margins
SetTbMargin => ("smgtb", "set_tb_margin"),
/// `birep`: Repeat bit-image cell #1 #2 times
BitImageRepeat => ("birep", "bit_image_repeat"),
/// `binl`: Move to next row of the bit image
BitImageNewline => ("binel", "bit_image_newline"),
/// `bicr`: Move to beginning of same row
BitImageCarriageReturn => ("bicr", "bit_image_carriage_return"),
/// `colornm`: Give name for color #1
ColorNames => ("colornm", "color_names"),
/// `defbi`: Define rectangular bit-image region
DefineBitImageRegion => ("defbi", "define_bit_image_region"),
/// `endbi`: End a bit-image region
EndBitImageRegion => ("endbi", "end_bit_image_region"),
/// `setcolor`: Change to ribbon color #1
SetColorBand => ("setcolor", "set_color_band"),
/// `slines`: Set page length to #1 lines
SetPageLength => ("slines", "set_page_length"),
/// `dispc`: Display PC character
DisplayPcChar => ("dispc", "display_pc_char"),
/// `smpch`: Enter PC character display mode
EnterPcCharsetMode => ("smpch", "enter_pc_charset_mode"),
/// `rmpch`: Disable PC character display mode
ExitPcCharsetMode => ("rmpch", "exit_pc_charset_mode"),
/// `smsc`: Enter PC scancode mode
EnterScancodeMode => ("smsc", "enter_scancode_mode"),
/// `rmsc`: Disable PC scancode mode
ExitScancodeMode => ("rmsc", "exit_scancode_mode"),
/// `pctrm`: PC terminal options
PcTermOptions => ("pctrm", "pc_term_options"),
/// `scesc`: Escape for scancode emulation
ScancodeEscape => ("scesc", "scancode_escape"),
/// `scesa`: Alternate escape for scancode emulation (default is for VT100)
AltScancodeEsc => ("scesa", "alt_scancode_esc"),
/// `ehhlm`: Turn on horizontal highlight mode
EnterHorizontalHlMode => ("ehhlm", "enter_horizontal_hl_mode"),
/// `elhlm`: Turn on left highlight mode
EnterLeftHlMode => ("elhlm", "enter_left_hl_mode"),
/// `elohlm`: Turn on low highlight mode
EnterLowHlMode => ("elohlm", "enter_low_hl_mode"),
/// `erhlm`: Turn on right highlight mode
EnterRightHlMode => ("erhlm", "enter_right_hl_mode"),
/// `ethlm`: Turn on top highlight mode
EnterTopHlMode => ("ethlm", "enter_top_hl_mode"),
/// `evhlm`: Turn on vertical highlight mode
EnterVerticalHlMode => ("evhlm", "enter_vertical_hl_mode"),
/// `sgr1`: Define second set of video attributes #1-#6
SetAAttributes => ("sgr1", "set_a_attributes"),
/// `slength`: Set page length to #1 hundredth of an inch
SetPglenInch => ("slength", "set_pglen_inch"),
}
}