00001 /* 00002 * File: libdos.h 00003 * Summary: Functions for DOS support. 00004 * Written by: Darshan Shaligram 00005 * 00006 * Added for Crawl Reference by dshaligram on Wed Nov 22 08:41:20 2006 UTC 00007 */ 00008 00009 #ifndef __LIBDOS_H__ 00010 #define __LIBDOS_H__ 00011 00012 #include <conio.h> 00013 #include <stdio.h> 00014 00015 typedef unsigned char screen_buffer_t; 00016 00017 void init_libdos(); 00018 00019 int get_number_of_lines(); 00020 int get_number_of_cols(); 00021 00022 inline void gotoxy_sys(int x, int y) { gotoxy(x, y); } 00023 inline void enable_smart_cursor(bool) { } 00024 inline bool is_smart_cursor_enabled() { return (false); } 00025 void set_cursor_enabled(bool enabled); 00026 bool is_cursor_enabled(); 00027 void clear_to_end_of_line(); 00028 int getch_ck(); 00029 static inline void set_mouse_enabled(bool enabled) { } 00030 00031 inline void update_screen() 00032 { 00033 } 00034 00035 void putwch(unsigned c); 00036 00037 inline void put_colour_ch(int colour, unsigned ch) 00038 { 00039 textattr(colour); 00040 putwch(ch); 00041 } 00042 00043 #endif