VTparse.h revision 04b94745
104b94745Smrg/* $XTermId: VTparse.h,v 1.72 2023/11/24 13:18:38 tom Exp $ */
2d522f475Smrg
3d522f475Smrg/*
404b94745Smrg * Copyright 1996-2019,2023 by Thomas E. Dickey
5d522f475Smrg *
6d522f475Smrg *                         All Rights Reserved
7d522f475Smrg *
820d2c4d2Smrg * Permission is hereby granted, free of charge, to any person obtaining a
920d2c4d2Smrg * copy of this software and associated documentation files (the
1020d2c4d2Smrg * "Software"), to deal in the Software without restriction, including
1120d2c4d2Smrg * without limitation the rights to use, copy, modify, merge, publish,
1220d2c4d2Smrg * distribute, sublicense, and/or sell copies of the Software, and to
1320d2c4d2Smrg * permit persons to whom the Software is furnished to do so, subject to
1420d2c4d2Smrg * the following conditions:
1520d2c4d2Smrg *
1620d2c4d2Smrg * The above copyright notice and this permission notice shall be included
1720d2c4d2Smrg * in all copies or substantial portions of the Software.
1820d2c4d2Smrg *
1920d2c4d2Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
2020d2c4d2Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2120d2c4d2Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
2220d2c4d2Smrg * IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
2320d2c4d2Smrg * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2420d2c4d2Smrg * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2520d2c4d2Smrg * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2620d2c4d2Smrg *
2720d2c4d2Smrg * Except as contained in this notice, the name(s) of the above copyright
2820d2c4d2Smrg * holders shall not be used in advertising or otherwise to promote the
2920d2c4d2Smrg * sale, use or other dealings in this Software without prior written
3020d2c4d2Smrg * authorization.
31d522f475Smrg */
32d522f475Smrg
33d522f475Smrg#ifndef included_VTparse_h
34d522f475Smrg#define included_VTparse_h 1
35d522f475Smrg
36d522f475Smrg#include <xterm.h>
37d522f475Smrg
38d522f475Smrg#ifndef Const
39d522f475Smrg# if defined(__STDC__) && !defined(__cplusplus)
40d522f475Smrg#  define Const const
41d522f475Smrg# else
420bd37d32Smrg#  define Const	/**/
43d522f475Smrg# endif
44d522f475Smrg#endif
45d522f475Smrg
46d522f475Smrg/*
47d522f475Smrg * PARSE_T has to be large enough to handle the number of cases enumerated here.
48d522f475Smrg */
49d522f475Smrgtypedef unsigned char PARSE_T;
50d522f475Smrg
51d522f475Smrgextern Const PARSE_T ansi_table[];
52d522f475Smrgextern Const PARSE_T cigtable[];
53d522f475Smrgextern Const PARSE_T csi2_table[];
5404b94745Smrgextern Const PARSE_T csi_amp_table[];
5504b94745Smrgextern Const PARSE_T csi_dec_dollar_table[];
56d522f475Smrgextern Const PARSE_T csi_ex_table[];
57d522f475Smrgextern Const PARSE_T csi_quo_table[];
5820d2c4d2Smrgextern Const PARSE_T csi_sp_table[];
59d522f475Smrgextern Const PARSE_T csi_table[];
6004b94745Smrgextern Const PARSE_T csi_tick_table[];
61d522f475Smrgextern Const PARSE_T dec2_table[];
62d522f475Smrgextern Const PARSE_T dec3_table[];
63d522f475Smrgextern Const PARSE_T dec_table[];
64d522f475Smrgextern Const PARSE_T eigtable[];
65d522f475Smrgextern Const PARSE_T esc_sp_table[];
66d522f475Smrgextern Const PARSE_T esc_table[];
67d522f475Smrgextern Const PARSE_T scrtable[];
682eaa94a1Schristosextern Const PARSE_T scs96table[];
69d522f475Smrgextern Const PARSE_T scstable[];
70d522f475Smrgextern Const PARSE_T sos_table[];
71d522f475Smrg
72d522f475Smrg#if OPT_DEC_RECTOPS
73d522f475Smrgextern Const PARSE_T csi_dollar_table[];
74d522f475Smrgextern Const PARSE_T csi_star_table[];
750bd37d32Smrg#endif /* OPT_DEC_LOCATOR */
76d522f475Smrg
77d522f475Smrg#if OPT_VT52_MODE
78d522f475Smrgextern Const PARSE_T vt52_table[];
79d522f475Smrgextern Const PARSE_T vt52_esc_table[];
80d522f475Smrgextern Const PARSE_T vt52_ignore_table[];
81d522f475Smrg#endif
82d522f475Smrg
8304b94745Smrg#if OPT_VT525_COLORS
8404b94745Smrgextern Const PARSE_T csi_comma_table[];
8504b94745Smrg#endif
8604b94745Smrg
87d522f475Smrg#if OPT_WIDE_CHARS
88d522f475Smrgextern Const PARSE_T esc_pct_table[];
89f2e35a3aSmrgextern Const PARSE_T scs_amp_table[];
90e0a2b6dfSmrgextern Const PARSE_T scs_pct_table[];
91f2e35a3aSmrgextern Const PARSE_T scs_2qt_table[];
92f2e35a3aSmrg#endif
93f2e35a3aSmrg
94f2e35a3aSmrg#if OPT_XTERM_SGR
95f2e35a3aSmrgextern Const PARSE_T csi_hash_table[];
96d522f475Smrg#endif
97d522f475Smrg
982e4f8982Smrg#include <VTparse.hin>
99d522f475Smrg
100d522f475Smrg#endif /* included_VTparse_h */
101