1 /*
2  * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
3  *
4  *                         All Rights Reserved
5  *
6  * Permission to use, copy, modify, and distribute this software and its
7  * documentation for any purpose and without fee is hereby granted,
8  * provided that the above copyright notice appear in all copies and that
9  * both that copyright notice and this permission notice appear in
10  * supporting documentation, and that the name of Digital Equipment
11  * Corporation not be used in advertising or publicity pertaining to
12  * distribution of the software without specific, written prior permission.
13  *
14  *
15  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
16  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
17  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
18  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
19  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
20  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
21  * SOFTWARE.
22  */
23 
24 /*
25  * The following list of definitions is generated from VTparse.def using the
26  * following command line:
27  *
28  *     grep '^CASE_' VTparse.def | awk '{printf "#define %s %d\n", $1, n++}'
29  *
30  * You you need to change something, change VTparse.def and regenerate the
31  * definitions.  This would have been automatic, but since this doesn't change
32  * very often, it isn't worth the makefile hassle.
33  */
34 
35 #define CASE_GROUND_STATE 0
36 #define CASE_IGNORE_STATE 1
37 #define CASE_IGNORE_ESC 2
38 #define CASE_IGNORE 3
39 #define CASE_BELL 4
40 #define CASE_BS 5
41 #define CASE_CR 6
42 #define CASE_ESC 7
43 #define CASE_VMOT 8
44 #define CASE_TAB 9
45 #define CASE_SI 10
46 #define CASE_SO 11
47 #define CASE_SCR_STATE 12
48 #define CASE_SCS0_STATE 13
49 #define CASE_SCS1_STATE 14
50 #define CASE_SCS2_STATE 15
51 #define CASE_SCS3_STATE 16
52 #define CASE_ESC_IGNORE 17
53 #define CASE_ESC_DIGIT 18
54 #define CASE_ESC_SEMI 19
55 #define CASE_DEC_STATE 20
56 #define CASE_ICH 21
57 #define CASE_CUU 22
58 #define CASE_CUD 23
59 #define CASE_CUF 24
60 #define CASE_CUB 25
61 #define CASE_CUP 26
62 #define CASE_ED 27
63 #define CASE_EL 28
64 #define CASE_IL 29
65 #define CASE_DL 30
66 #define CASE_DCH 31
67 #define CASE_DA1 32
68 #define CASE_TRACK_MOUSE 33
69 #define CASE_TBC 34
70 #define CASE_SET 35
71 #define CASE_RST 36
72 #define CASE_SGR 37
73 #define CASE_CPR 38
74 #define CASE_DECSTBM 39
75 #define CASE_DECREQTPARM 40
76 #define CASE_DECSET 41
77 #define CASE_DECRST 42
78 #define CASE_DECALN 43
79 #define CASE_GSETS 44
80 #define CASE_DECSC 45
81 #define CASE_DECRC 46
82 #define CASE_DECKPAM 47
83 #define CASE_DECKPNM 48
84 #define CASE_IND 49
85 #define CASE_NEL 50
86 #define CASE_HTS 51
87 #define CASE_RI 52
88 #define CASE_SS2 53
89 #define CASE_SS3 54
90 #define CASE_CSI_STATE 55
91 #define CASE_OSC 56
92 #define CASE_RIS 57
93 #define CASE_LS2 58
94 #define CASE_LS3 59
95 #define CASE_LS3R 60
96 #define CASE_LS2R 61
97 #define CASE_LS1R 62
98 #define CASE_PRINT 63
99 #define CASE_XTERM_SAVE 64
100 #define CASE_XTERM_RESTORE 65
101 #define CASE_XTERM_TITLE 66
102 #define CASE_DECID 67
103 #define CASE_HP_MEM_LOCK 68
104 #define CASE_HP_MEM_UNLOCK 69
105 #define CASE_HP_BUGGY_LL 70
106 #define CASE_TO_STATUS 71
107 #define CASE_FROM_STATUS 72
108 #define CASE_SHOW_STATUS 73
109 #define CASE_HIDE_STATUS 74
110 #define CASE_ERASE_STATUS 75
111 #define CASE_MBCS 76
112 #define CASE_SCS_STATE 77
113 #define CASE_MY_GRAPHIC_CMD 78
114 #define CASE_MY_LINE 79
115 /* 80 (Not used) */
116 /* 81 (Not used) */
117 #define CASE_BACK_BYTE 82
118