2016-11-03 08:25:06 -06:00
|
|
|
/* $XTermId: VTparse.h,v 1.66 2016/10/06 00:37:11 tom Exp $ */
|
2006-11-26 04:11:12 -07:00
|
|
|
|
|
|
|
/*
|
2016-11-03 08:25:06 -06:00
|
|
|
* Copyright 1996-2015,2016 by Thomas E. Dickey
|
2006-11-26 04:11:12 -07:00
|
|
|
*
|
|
|
|
* All Rights Reserved
|
|
|
|
*
|
2010-03-25 16:03:51 -06:00
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the
|
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
|
* the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included
|
|
|
|
* in all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
|
|
* IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
|
|
|
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*
|
|
|
|
* Except as contained in this notice, the name(s) of the above copyright
|
|
|
|
* holders shall not be used in advertising or otherwise to promote the
|
|
|
|
* sale, use or other dealings in this Software without prior written
|
|
|
|
* authorization.
|
2006-11-26 04:11:12 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef included_VTparse_h
|
|
|
|
#define included_VTparse_h 1
|
|
|
|
|
|
|
|
#include <xterm.h>
|
|
|
|
|
|
|
|
#ifndef Const
|
|
|
|
# if defined(__STDC__) && !defined(__cplusplus)
|
|
|
|
# define Const const
|
|
|
|
# else
|
2013-01-04 09:40:18 -07:00
|
|
|
# define Const /**/
|
2006-11-26 04:11:12 -07:00
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* PARSE_T has to be large enough to handle the number of cases enumerated here.
|
|
|
|
*/
|
|
|
|
typedef unsigned char PARSE_T;
|
|
|
|
|
|
|
|
extern Const PARSE_T ansi_table[];
|
|
|
|
extern Const PARSE_T cigtable[];
|
|
|
|
extern Const PARSE_T csi2_table[];
|
|
|
|
extern Const PARSE_T csi_ex_table[];
|
|
|
|
extern Const PARSE_T csi_quo_table[];
|
2010-03-25 16:03:51 -06:00
|
|
|
extern Const PARSE_T csi_sp_table[];
|
2006-11-26 04:11:12 -07:00
|
|
|
extern Const PARSE_T csi_table[];
|
|
|
|
extern Const PARSE_T dec2_table[];
|
|
|
|
extern Const PARSE_T dec3_table[];
|
|
|
|
extern Const PARSE_T dec_table[];
|
|
|
|
extern Const PARSE_T eigtable[];
|
|
|
|
extern Const PARSE_T esc_sp_table[];
|
|
|
|
extern Const PARSE_T esc_table[];
|
|
|
|
extern Const PARSE_T scrtable[];
|
2008-08-25 12:05:56 -06:00
|
|
|
extern Const PARSE_T scs96table[];
|
2006-11-26 04:11:12 -07:00
|
|
|
extern Const PARSE_T scstable[];
|
|
|
|
extern Const PARSE_T sos_table[];
|
2010-10-05 13:37:23 -06:00
|
|
|
extern Const PARSE_T csi_dec_dollar_table[];
|
2006-11-26 04:11:12 -07:00
|
|
|
extern Const PARSE_T csi_tick_table[];
|
|
|
|
|
|
|
|
#if OPT_DEC_RECTOPS
|
|
|
|
extern Const PARSE_T csi_dollar_table[];
|
|
|
|
extern Const PARSE_T csi_star_table[];
|
2013-01-04 09:40:18 -07:00
|
|
|
#endif /* OPT_DEC_LOCATOR */
|
2006-11-26 04:11:12 -07:00
|
|
|
|
|
|
|
#if OPT_VT52_MODE
|
|
|
|
extern Const PARSE_T vt52_table[];
|
|
|
|
extern Const PARSE_T vt52_esc_table[];
|
|
|
|
extern Const PARSE_T vt52_ignore_table[];
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if OPT_WIDE_CHARS
|
|
|
|
extern Const PARSE_T esc_pct_table[];
|
2014-01-02 08:14:50 -07:00
|
|
|
extern Const PARSE_T scs_pct_table[];
|
2006-11-26 04:11:12 -07:00
|
|
|
#endif
|
|
|
|
|
2016-11-03 08:25:06 -06:00
|
|
|
#include <VTparse.hin>
|
2006-11-26 04:11:12 -07:00
|
|
|
|
|
|
|
#endif /* included_VTparse_h */
|