@ -88,17 +88,17 @@ char *argv0;
enum glyph_attribute {
ATTR_NULL = 0 ,
ATTR_BOLD = 1 ,
ATTR_FAINT = 2 ,
ATTR_ITALIC = 4 ,
ATTR_UNDERLINE = 8 ,
ATTR_BLINK = 1 6 ,
ATTR_REVERSE = 32 ,
ATTR_INVISIBLE = 64 ,
ATTR_STRUCK = 1 28 ,
ATTR_WRAP = 256 ,
ATTR_WIDE = 512 ,
ATTR_WDUMMY = 1 024 ,
ATTR_BOLD = 1 < < 0 ,
ATTR_FAINT = 1 < < 1 ,
ATTR_ITALIC = 1 < < 2 ,
ATTR_UNDERLINE = 1 < < 3 ,
ATTR_BLINK = 1 < < 4 ,
ATTR_REVERSE = 1 < < 5 ,
ATTR_INVISIBLE = 1 < < 6,
ATTR_STRUCK = 1 < < 7 ,
ATTR_WRAP = 1 < < 8 ,
ATTR_WIDE = 1 < < 9 ,
ATTR_WDUMMY = 1 < < 1 0,
} ;
enum cursor_movement {
@ -113,27 +113,27 @@ enum cursor_state {
} ;
enum term_mode {
MODE_WRAP = 1 ,
MODE_INSERT = 2 ,
MODE_APPKEYPAD = 4 ,
MODE_ALTSCREEN = 8 ,
MODE_CRLF = 1 6 ,
MODE_MOUSEBTN = 32 ,
MODE_MOUSEMOTION = 64 ,
MODE_REVERSE = 1 28 ,
MODE_KBDLOCK = 256 ,
MODE_HIDE = 512 ,
MODE_ECHO = 1 024 ,
MODE_APPCURSOR = 2048 ,
MODE_MOUSESGR = 4096 ,
MODE_8BIT = 8192 ,
MODE_BLINK = 1 638 4,
MODE_FBLINK = 32768 ,
MODE_FOCUS = 6553 6,
MODE_MOUSEX10 = 1 31072 ,
MODE_MOUSEMANY = 262144 ,
MODE_BRCKTPASTE = 524288 ,
MODE_PRINT = 1 048576 ,
MODE_WRAP = 1 < < 0 ,
MODE_INSERT = 1 < < 1 ,
MODE_APPKEYPAD = 1 < < 2 ,
MODE_ALTSCREEN = 1 < < 3 ,
MODE_CRLF = 1 < < 4 ,
MODE_MOUSEBTN = 1 < < 5 ,
MODE_MOUSEMOTION = 1 < < 6,
MODE_REVERSE = 1 < < 7 ,
MODE_KBDLOCK = 1 < < 8 ,
MODE_HIDE = 1 < < 9 ,
MODE_ECHO = 1 < < 1 0,
MODE_APPCURSOR = 1 < < 11 ,
MODE_MOUSESGR = 1 < < 12 ,
MODE_8BIT = 1 < < 13 ,
MODE_BLINK = 1 < < 1 4,
MODE_FBLINK = 1 < < 15 ,
MODE_FOCUS = 1 < < 1 6,
MODE_MOUSEX10 = 1 < < 17 ,
MODE_MOUSEMANY = 1 < < 18 ,
MODE_BRCKTPASTE = 1 < < 19 ,
MODE_PRINT = 1 < < 2 0,
MODE_MOUSE = MODE_MOUSEBTN | MODE_MOUSEMOTION | MODE_MOUSEX10 \
| MODE_MOUSEMANY ,
} ;