X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fansi.h;h=e88f076c27c8967d3d6bfee82060fe5c9c94e161;hb=8b6118c4edcdd61ca2312ae5ced001a98607a693;hp=1b84ddc09e55734a26035b4bd086c00ff19ed421;hpb=455df606ac8985c493fc52bcc6d09e0fd27d1cdc;p=sympathy.git diff --git a/src/ansi.h b/src/ansi.h index 1b84ddc..e88f076 100644 --- a/src/ansi.h +++ b/src/ansi.h @@ -12,6 +12,12 @@ /* * $Log$ + * Revision 1.5 2008/02/07 12:16:04 james + * *** empty log message *** + * + * Revision 1.4 2008/02/07 00:43:27 james + * *** empty log message *** + * * Revision 1.3 2008/02/07 00:39:13 james * *** empty log message *** * @@ -29,13 +35,14 @@ #define ANSI_INVAL -1 #define ANSI_ESCAPE_BUF_LEN 10 -#define ANSI_ESCAPE_TIMEOUT 100000 /*in ms*/ +#define ANSI_ESCAPE_TIMEOUT 100000 /*in ms */ -typedef struct { -int in_escape; -struct timeval last_escape; -char escape_buf[ANSI_ESCAPE_BUF_LEN]; -int escape_ptr; +typedef struct +{ + int in_escape; + struct timeval last_escape; + char escape_buf[ANSI_ESCAPE_BUF_LEN]; + int escape_ptr; } ANSI_Parser; typedef struct @@ -47,6 +54,7 @@ typedef struct CRT_Pos size; int hide_cursor; int attr; + int color; ANSI_Parser parser; } ANSI;