kern

diff src/vid.h @ 2:86781ef20689

added hardware scrolling, memset16 and temporary keyboard input for testing
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 04 Dec 2010 08:04:43 +0200
parents ebe5e0e44a9d
children
line diff
     1.1 --- a/src/vid.h	Thu Dec 02 08:45:41 2010 +0200
     1.2 +++ b/src/vid.h	Sat Dec 04 08:04:43 2010 +0200
     1.3 @@ -1,9 +1,10 @@
     1.4  #ifndef VID_H_
     1.5  #define VID_H_
     1.6  
     1.7 -#define WIDTH	80
     1.8 -#define HEIGHT	25
     1.9 +#define WIDTH			80
    1.10 +#define HEIGHT			25
    1.11  
    1.12 +/* the standard CGA color palette */
    1.13  enum {
    1.14  	BLACK,
    1.15  	BLUE,
    1.16 @@ -23,8 +24,9 @@
    1.17  	WHITE
    1.18  };
    1.19  
    1.20 -void clear_scr(int color);
    1.21 +void clear_scr(void);
    1.22  void set_char(char c, int x, int y, int fg, int bg);
    1.23 +void set_cursor(int x, int y);
    1.24  void scroll_scr(void);
    1.25  
    1.26  #endif	/* VID_H_ */