summaryrefslogtreecommitdiff
path: root/src/ansi.h
diff options
context:
space:
mode:
authorjnweiger <jnweiger>2005-12-16 17:25:08 +0000
committerjnweiger <jnweiger>2005-12-16 17:25:08 +0000
commita5c2d002715930526cf968553c73a317ac4086fd (patch)
treecd2ea47d7d1ebe0c2b3e5d87e6972a0ec2829e9d /src/ansi.h
parentc81f3249a4a75d1aa9b9070673c7170e9401c32e (diff)
downloadscreen-a5c2d002715930526cf968553c73a317ac4086fd.tar.gz
historic version screen-3.3.4 Oct 21 2002
Diffstat (limited to 'src/ansi.h')
-rw-r--r--src/ansi.h47
1 files changed, 32 insertions, 15 deletions
diff --git a/src/ansi.h b/src/ansi.h
index 7a05755..fde5bcb 100644
--- a/src/ansi.h
+++ b/src/ansi.h
@@ -1,11 +1,11 @@
-/* Copyright (c) 1991
+/* Copyright (c) 1993
* Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
* Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
* Copyright (c) 1987 Oliver Laumann
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 1, or (at your option)
+ * the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -17,17 +17,6 @@
* along with this program (see the file COPYING); if not, write to the
* Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * Noteworthy contributors to screen's design and implementation:
- * Wayne Davison (davison@borland.com)
- * Patrick Wolfe (pat@kai.com, kailand!pat)
- * Bart Schaefer (schaefer@cse.ogi.edu)
- * Nathan Glasser (nathan@brokaw.lcs.mit.edu)
- * Larry W. Virden (lwv27%cas.BITNET@CUNYVM.CUNY.Edu)
- * Howard Chu (hyc@hanauma.jpl.nasa.gov)
- * Tim MacKenzie (tym@dibbler.cs.monash.edu.au)
- * Markku Jarvinen (mta@{cc,cs,ee}.tut.fi)
- * Marc Boucher (marc@CAM.ORG)
- *
****************************************************************
* $Id$ FAU
*/
@@ -49,7 +38,35 @@
#define A_BL (1<<ATTR_BL)
#define A_MAX (1<<(NATTR-1))
-/* Types of movement used by GotoPos() */
+/*
+ * Parser state
+ */
+enum state_t
+{
+ LIT, /* Literal input */
+ ESC, /* Start of escape sequence */
+ ASTR, /* Start of control string */
+ STRESC, /* ESC seen in control string */
+ CSI, /* Reading arguments in "CSI Pn ;...*/
+ PRIN, /* Printer mode */
+ PRINESC, /* ESC seen in printer mode */
+ PRINCSI, /* CSI seen in printer mode */
+ PRIN4 /* CSI 4 seen in printer mode */
+};
+
+enum string_t
+{
+ NONE,
+ DCS, /* Device control string */
+ OSC, /* Operating system command */
+ APC, /* Application program command */
+ PM, /* Privacy message */
+ AKA /* a.k.a. for current screen */
+};
+
+/*
+ * Types of movement used by GotoPos()
+ */
enum move_t {
M_NONE,
M_UP,
@@ -76,6 +93,6 @@ enum move_t {
#ifdef TOPSTAT
#define STATLINE (0)
#else
-#define STATLINE (screenheight-1)
+#define STATLINE (d_height-1)
#endif