chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / vt102.h
1 /*
2  * vt102.h:
3  *
4  * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
5  * All rights reserved.
6  *
7  */
8
9 /*
10  * $Id$
11  */
12
13 /*
14  * $Log$
15  * Revision 1.3  2008/02/04 20:23:55  james
16  * *** empty log message ***
17  *
18  * Revision 1.2  2008/02/04 02:05:06  james
19  * *** empty log message ***
20  *
21  * Revision 1.1  2008/02/03 23:36:41  james
22  * *** empty log message ***
23  *
24  */
25
26 #ifndef __VT102_H__
27 #define __VT102_H__
28
29 #define VT102_CSI_LEN 128
30
31 #define VT102_ROWS      24
32 #define VT102_COLS      80
33 #define VT102_STATUS_ROW        24
34
35 typedef struct
36 {
37   int in_escape;
38   int in_csi;
39   int csi_ptr;
40   char csi_buf[VT102_CSI_LEN];
41 } VT102_parser;
42
43 typedef struct
44 {
45   CRT_Pos top_margin,bottom_margin;
46   CRT_Pos screen_start,screen_end;
47   VT102_parser parser;
48   int attr;
49   CRT crt;
50   CRT_Pos pos;
51 } VT102;
52
53
54 #endif /* __VT102_H__ */