blob: a6502c06ec1a4c377da89efc3d63b19c3f8a53b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* File: libdos.h
* Summary: Functions for DOS support.
* Written by: Darshan Shaligram
*
* Added for Crawl Reference by dshaligram on Wed Nov 22 08:41:20 2006 UTC
*
* Modified for Crawl Reference by $Author$ on $Date$
*/
#ifndef __LIBDOS_H__
#define __LIBDOS_H__
#include <conio.h>
typedef unsigned char screen_buffer_t;
void init_libdos();
int get_number_of_lines();
int get_number_of_cols();
inline void gotoxy_sys(int x, int y) { gotoxy(x, y); }
inline void enable_smart_cursor(bool ) { }
inline bool is_smart_cursor_enabled() { return (false); }
void set_cursor_enabled(bool enabled);
bool is_cursor_enabled();
void clear_to_end_of_line();
int getch_ck();
static inline void set_mouse_enabled(bool enabled) { }
void message_out(int mline, int colour, const char *str, int firstcol = 0,
bool newline = true);
void clear_message_window();
inline void update_screen()
{
}
void putwch(unsigned c);
inline void put_colour_ch(int colour, unsigned ch)
{
textattr(colour);
putwch(ch);
}
#endif
|