diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2013-06-15 21:05:57 +0200 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2015-06-25 17:22:58 +0200 |
commit | 144836c3bb020405bf029d0d5a85c84aa74662d9 (patch) | |
tree | 71fcc413303b8c35cd4b70f0f96f850e81d57df0 /src/ansi.h | |
parent | 55f5f925a85ba813fab67f3f17598104f528fcff (diff) | |
download | screen-144836c3bb020405bf029d0d5a85c84aa74662d9.tar.gz |
more header stuff
move forward declarations of functions from extern.h to their own header
files
fix inclusion option passed in Makefile
cosmetic stuff on some structs
Diffstat (limited to 'src/ansi.h')
-rw-r--r-- | src/ansi.h | 65 |
1 files changed, 39 insertions, 26 deletions
@@ -55,31 +55,29 @@ * Parser state */ /* keep state_t and state_t_string in sync! */ -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 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 */ }; /* keep string_t and string_t_string in sync! */ -enum string_t -{ - NONE, - DCS, /* Device control string */ - OSC, /* Operating system command */ - APC, /* Application program command */ - /* - used for status change */ - PM, /* Privacy message */ - AKA, /* title for current screen */ - GM, /* Global message to every display */ - STATUS /* User hardstatus line */ +enum string_t { + NONE, + DCS, /* Device control string */ + OSC, /* Operating system command */ + APC, /* Application program command */ + /* - used for status change */ + PM, /* Privacy message */ + AKA, /* title for current screen */ + GM, /* Global message to every display */ + STATUS /* User hardstatus line */ }; /* @@ -101,10 +99,10 @@ enum move_t { #define EXPENSIVE 1000 -#define G0 0 -#define G1 1 -#define G2 2 -#define G3 3 +#define G0 0 +#define G1 1 +#define G2 2 +#define G3 3 #define ASCII 0 @@ -149,5 +147,20 @@ enum move_t { ((ml)->font[x] & 0xe0) == 0x80 \ ) +struct win; + +void ResetAnsiState (struct win *); +void ResetWindow (struct win *); +void ResetCharsets (struct win *); +void WriteString (struct win *, char *, int); +void ChangeAKA (struct win *, char *, size_t); +void SetCharsets (struct win *, char *); +int GetAnsiStatus (struct win *, char *); +void WNewAutoFlow (struct win *, int); +void WBell (struct win *, int); +void WMsg (struct win *, int, char *); +void WChangeSize (struct win *, int, int); +void WindowChanged (struct win *, int); +int MFindUsedLine (struct win *, int, int); #endif /* SCREEN_ANSI_H */ |