X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fansi.h;h=b88b329848352b26cd9c252d066202d0d9b30c9b;hb=ece1299582523fd5a339398bdddb77f525e2a2fc;hp=e88f076c27c8967d3d6bfee82060fe5c9c94e161;hpb=8b6118c4edcdd61ca2312ae5ced001a98607a693;p=sympathy.git diff --git a/src/ansi.h b/src/ansi.h index e88f076..b88b329 100644 --- a/src/ansi.h +++ b/src/ansi.h @@ -12,6 +12,21 @@ /* * $Log$ + * Revision 1.10 2008/02/20 19:44:37 james + * @@ + * + * Revision 1.9 2008/02/20 19:36:06 james + * @@ + * + * Revision 1.8 2008/02/20 19:25:09 james + * *** empty log message *** + * + * Revision 1.7 2008/02/13 16:57:29 james + * *** empty log message *** + * + * Revision 1.6 2008/02/13 01:08:18 james + * *** empty log message *** + * * Revision 1.5 2008/02/07 12:16:04 james * *** empty log message *** * @@ -45,9 +60,14 @@ typedef struct int escape_ptr; } ANSI_Parser; -typedef struct +struct CRT_struct; +struct Context_struct; + +typedef struct ANSI_struct { - int fd; + ANSI_Parser parser; + + TTY *terminal; CRT crt; CRT_Pos pos; @@ -56,7 +76,15 @@ typedef struct int attr; int color; - ANSI_Parser parser; + + int history_ptr; + + int (*dispatch)(struct ANSI_struct *,struct Context_struct *); + void (*update)(struct ANSI_struct *,struct Context_struct *); + void (*one_shot)(struct ANSI_struct *,struct CRT_struct *); + void (*reset)(struct ANSI_struct *,struct CRT_struct *); + void (*terminal_reset)(struct ANSI_struct *); + void (*close)(struct ANSI_struct *); } ANSI;