15104ee6eSmrg/* $XTermId: VTparse.h,v 1.73 2024/09/02 16:06:16 tom Exp $ */ 2d522f475Smrg 3d522f475Smrg/* 45104ee6eSmrg * Copyright 1996-2023,2024 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/* 39d522f475Smrg * PARSE_T has to be large enough to handle the number of cases enumerated here. 40d522f475Smrg */ 41d522f475Smrgtypedef unsigned char PARSE_T; 42d522f475Smrg 435104ee6eSmrgextern const PARSE_T ansi_table[]; 445104ee6eSmrgextern const PARSE_T cigtable[]; 455104ee6eSmrgextern const PARSE_T csi2_table[]; 465104ee6eSmrgextern const PARSE_T csi_amp_table[]; 475104ee6eSmrgextern const PARSE_T csi_dec_dollar_table[]; 485104ee6eSmrgextern const PARSE_T csi_ex_table[]; 495104ee6eSmrgextern const PARSE_T csi_quo_table[]; 505104ee6eSmrgextern const PARSE_T csi_sp_table[]; 515104ee6eSmrgextern const PARSE_T csi_table[]; 525104ee6eSmrgextern const PARSE_T csi_tick_table[]; 535104ee6eSmrgextern const PARSE_T dec2_table[]; 545104ee6eSmrgextern const PARSE_T dec3_table[]; 555104ee6eSmrgextern const PARSE_T dec_table[]; 565104ee6eSmrgextern const PARSE_T eigtable[]; 575104ee6eSmrgextern const PARSE_T esc_sp_table[]; 585104ee6eSmrgextern const PARSE_T esc_table[]; 595104ee6eSmrgextern const PARSE_T scrtable[]; 605104ee6eSmrgextern const PARSE_T scs96table[]; 615104ee6eSmrgextern const PARSE_T scstable[]; 625104ee6eSmrgextern const PARSE_T sos_table[]; 63d522f475Smrg 64d522f475Smrg#if OPT_DEC_RECTOPS 655104ee6eSmrgextern const PARSE_T csi_dollar_table[]; 665104ee6eSmrgextern const PARSE_T csi_star_table[]; 670bd37d32Smrg#endif /* OPT_DEC_LOCATOR */ 68d522f475Smrg 69d522f475Smrg#if OPT_VT52_MODE 705104ee6eSmrgextern const PARSE_T vt52_table[]; 715104ee6eSmrgextern const PARSE_T vt52_esc_table[]; 725104ee6eSmrgextern const PARSE_T vt52_ignore_table[]; 73d522f475Smrg#endif 74d522f475Smrg 7504b94745Smrg#if OPT_VT525_COLORS 765104ee6eSmrgextern const PARSE_T csi_comma_table[]; 7704b94745Smrg#endif 7804b94745Smrg 79d522f475Smrg#if OPT_WIDE_CHARS 805104ee6eSmrgextern const PARSE_T esc_pct_table[]; 815104ee6eSmrgextern const PARSE_T scs_amp_table[]; 825104ee6eSmrgextern const PARSE_T scs_pct_table[]; 835104ee6eSmrgextern const PARSE_T scs_2qt_table[]; 84f2e35a3aSmrg#endif 85f2e35a3aSmrg 86f2e35a3aSmrg#if OPT_XTERM_SGR 875104ee6eSmrgextern const PARSE_T csi_hash_table[]; 88d522f475Smrg#endif 89d522f475Smrg 902e4f8982Smrg#include <VTparse.hin> 91d522f475Smrg 92d522f475Smrg#endif /* included_VTparse_h */ 93