annotate src/vid.h @ 4:0489a34ab348
- reverted the trunk back to hardware scrolling
- added a missing include (ctype.h in term.c)
- added a comment explaining what memset16 does
- beefed up the README file
author |
John Tsiombikas <nuclear@member.fsf.org> |
date |
Fri, 10 Dec 2010 03:44:34 +0200 |
parents |
ebe5e0e44a9d |
children |
|
rev |
line source |
nuclear@0
|
1 #ifndef VID_H_
|
nuclear@0
|
2 #define VID_H_
|
nuclear@0
|
3
|
nuclear@2
|
4 #define WIDTH 80
|
nuclear@2
|
5 #define HEIGHT 25
|
nuclear@1
|
6
|
nuclear@2
|
7 /* the standard CGA color palette */
|
nuclear@1
|
8 enum {
|
nuclear@1
|
9 BLACK,
|
nuclear@1
|
10 BLUE,
|
nuclear@1
|
11 GREEN,
|
nuclear@1
|
12 CYAN,
|
nuclear@1
|
13 RED,
|
nuclear@1
|
14 MAGENTA,
|
nuclear@1
|
15 BROWN,
|
nuclear@1
|
16 LTGRAY,
|
nuclear@1
|
17 GRAY,
|
nuclear@1
|
18 LTBLUE,
|
nuclear@1
|
19 LTGREEN,
|
nuclear@1
|
20 LTCYAN,
|
nuclear@1
|
21 LTRED,
|
nuclear@1
|
22 LTMAGENTA,
|
nuclear@1
|
23 YELLOW,
|
nuclear@1
|
24 WHITE
|
nuclear@1
|
25 };
|
nuclear@1
|
26
|
nuclear@2
|
27 void clear_scr(void);
|
nuclear@1
|
28 void set_char(char c, int x, int y, int fg, int bg);
|
nuclear@2
|
29 void set_cursor(int x, int y);
|
nuclear@1
|
30 void scroll_scr(void);
|
nuclear@0
|
31
|
nuclear@0
|
32 #endif /* VID_H_ */
|