Mercurial > hg > forks > pwpunix
annotate pwplib/tty.h @ 57:7d4f6c33a6ac
Warning cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 28 May 2010 15:24:04 +0300 |
parents | 5d819ba6891c |
children |
rev | line source |
---|---|
54
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
35
diff
changeset
|
1 #ifndef PWP_TTY_H |
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
35
diff
changeset
|
2 #define PWP_TTY_H |
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
35
diff
changeset
|
3 |
0 | 4 #include "pwplib.h" |
5 | |
6 #ifndef __TTY_C | |
7 extern | |
8 #endif | |
9 struct | |
10 { | |
11 int fd; | |
12 int width; int height; | |
13 | |
14 int type,minor; | |
15 long int vtcap; | |
16 | |
17 int att,cx,cy; /* getridoff */ | |
18 | |
19 u8*prevbuf; | |
20 | |
21 #ifdef __POSIX__ | |
22 struct termios setup; | |
23 #endif | |
24 | |
25 int maxframedata; | |
26 int framedelay; | |
27 }pwp_tty; | |
28 | |
29 /* major types */ | |
30 enum | |
31 { | |
32 TTY_DUMB=0, | |
33 | |
34 TTY_XVT_MONO, | |
35 TTY_XVT_COLOR, | |
36 | |
37 TTY_VT_COLOR_IBM, | |
38 TTY_VT_COLOR, | |
39 TTY_VT1XX, /* vt100, vt102 etc */ | |
40 | |
41 TTY_ANSISYS, /* ansi, ansi-bbs etc */ | |
42 TTY_LINUX, /* linux */ | |
43 | |
44 TTY_VT2XX /* vtnnn where nnn>=200 */ | |
45 }; | |
17
c60e531d19cd
Some misc. cleanups and minor warning removals.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
46 |
35 | 47 int tty_init(void); |
57 | 48 void tty_write(void *data, int lgt); |
54
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
35
diff
changeset
|
49 |
55 | 50 #ifdef DRIVE_TTY_DEC |
56 | 51 void tty_vt1xx_init(); |
55 | 52 void tty_vt_dump_attr(); |
53 void tty_vt_initstring(); | |
54 #endif | |
55 | |
56 #ifdef HAVE_TTYSTUFF | |
57 int tty_dumb_init(); | |
58 #endif | |
59 | |
60 #ifdef DRIVE_TTY | |
61 void tty_ansicol_prep_attr(void); | |
62 void tty_ansicol_dump_attr(void); | |
63 | |
64 void tty_ansicol_init(void); | |
65 void tty_ansisys_init(void); | |
66 #endif | |
67 | |
68 | |
54
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
35
diff
changeset
|
69 #endif /* PWP_TTY_H */ |