4 * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
15 * Revision 1.11 2008/02/20 20:16:07 james
16 * *** empty log message ***
18 * Revision 1.10 2008/02/20 19:44:37 james
21 * Revision 1.9 2008/02/20 19:36:06 james
24 * Revision 1.8 2008/02/20 19:25:09 james
25 * *** empty log message ***
27 * Revision 1.7 2008/02/13 16:57:29 james
28 * *** empty log message ***
30 * Revision 1.6 2008/02/13 01:08:18 james
31 * *** empty log message ***
33 * Revision 1.5 2008/02/07 12:16:04 james
34 * *** empty log message ***
36 * Revision 1.4 2008/02/07 00:43:27 james
37 * *** empty log message ***
39 * Revision 1.3 2008/02/07 00:39:13 james
40 * *** empty log message ***
42 * Revision 1.2 2008/02/06 11:30:37 james
43 * *** empty log message ***
45 * Revision 1.1 2008/02/03 23:31:25 james
46 * *** empty log message ***
55 #define ANSI_ESCAPE_BUF_LEN 10
56 #define ANSI_ESCAPE_TIMEOUT 100000 /*in ms */
61 struct timeval last_escape;
62 char escape_buf[ANSI_ESCAPE_BUF_LEN];
67 struct Context_struct;
69 typedef struct ANSI_struct
85 int (*dispatch)(struct ANSI_struct *,struct Context_struct *);
86 void (*update)(struct ANSI_struct *,struct Context_struct *);
87 void (*one_shot)(struct ANSI_struct *,struct CRT_struct *);
88 void (*reset)(struct ANSI_struct *,struct CRT_struct *);
89 void (*terminal_reset)(struct ANSI_struct *);
90 void (*close)(struct ANSI_struct *);
94 #endif /* __ANSI_H__ */