kern

diff src/vid.h @ 1:ebe5e0e44a9d

pretty much finished the code for article 1, might do minor adjustments though
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 02 Dec 2010 08:45:41 +0200
parents 662ff2170531
children 86781ef20689
line diff
     1.1 --- a/src/vid.h	Wed Dec 01 22:02:42 2010 +0200
     1.2 +++ b/src/vid.h	Thu Dec 02 08:45:41 2010 +0200
     1.3 @@ -1,8 +1,30 @@
     1.4  #ifndef VID_H_
     1.5  #define VID_H_
     1.6  
     1.7 -void clear_scr(void);
     1.8 -void set_cursor(int x, int y);
     1.9 -void put_char(char c, int x, int y, int fg, int bg);
    1.10 +#define WIDTH	80
    1.11 +#define HEIGHT	25
    1.12 +
    1.13 +enum {
    1.14 +	BLACK,
    1.15 +	BLUE,
    1.16 +	GREEN,
    1.17 +	CYAN,
    1.18 +	RED,
    1.19 +	MAGENTA,
    1.20 +	BROWN,
    1.21 +	LTGRAY,
    1.22 +	GRAY,
    1.23 +	LTBLUE,
    1.24 +	LTGREEN,
    1.25 +	LTCYAN,
    1.26 +	LTRED,
    1.27 +	LTMAGENTA,
    1.28 +	YELLOW,
    1.29 +	WHITE
    1.30 +};
    1.31 +
    1.32 +void clear_scr(int color);
    1.33 +void set_char(char c, int x, int y, int fg, int bg);
    1.34 +void scroll_scr(void);
    1.35  
    1.36  #endif	/* VID_H_ */