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