diff options
Diffstat (limited to 'menu/libmenu/com32io.h')
-rw-r--r-- | menu/libmenu/com32io.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/menu/libmenu/com32io.h b/menu/libmenu/com32io.h index 26bec0fc..78ce72fa 100644 --- a/menu/libmenu/com32io.h +++ b/menu/libmenu/com32io.h @@ -1,5 +1,5 @@ /* -*- c -*- ------------------------------------------------------------- * - * + * * Copyright 2004-2005 Murali Krishnan Ganapathy - All Rights Reserved * * This program is free software; you can redistribute it and/or modify @@ -21,7 +21,7 @@ /* BIOS Assisted output routines */ -void cswprint(const char *str, char attr, char left); +void cswprint(const char *str, char attr, char left); // Print a C str (NUL-terminated) respecting the left edge of window // i.e. \n in str will move cursor to column left // Print a C str (NUL-terminated) @@ -31,11 +31,11 @@ static inline void csprint(const char *str, char attr) cswprint(str,attr,0); } -void cprint(char chr,char attr,unsigned int times, char disppage); // Print a char +void cprint(char chr,char attr,unsigned int times, char disppage); // Print a char void setdisppage(char num); // Set the display page to specified number -char getdisppage(); // Get current display page +char getdisppage(); // Get current display page void gotoxy(char row,char col, char page); @@ -44,7 +44,7 @@ void getpos(char * row, char * col, char page); char inputc(char * scancode); // Return ASCII char by val, and scancode by reference static inline void putch(char x, char attr, char page) -{ +{ cprint(x,attr,1,page); } @@ -52,7 +52,7 @@ void setcursorshape(char start,char end); // Set cursor shape void getcursorshape(char *start,char *end); // Get shape for current page // Get char displayed at current position in specified page -unsigned char getcharat(char page); +unsigned char getcharat(char page); static inline void cursoroff(void) /* Turns off cursor */ { @@ -90,10 +90,10 @@ static inline void scrollup(void) //Scroll up display screen by one line { scrollupwindow(0,0,getnumrows(),getnumcols(),0x07,1); } - + void setvideomode(char mode); // Set the video mode. -static inline char getvideomode(void) // Get the current video mode +static inline char getvideomode(void) // Get the current video mode { return readbiosb(0x449); } @@ -105,8 +105,8 @@ void beep(); // A Bell unsigned char checkkbdbuf(); // Check to see if there is kbd buffer is non-empty? static inline void clearkbdbuf() // Clear the kbd buffer (how many chars removed?) -{ +{ while (checkkbdbuf()) inputc(NULL); -} +} #endif |