summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libdos.h
blob: fd6a0a0d9204b3893f70e2b46df570e4d46a81e0 (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
#ifndef __LIBDOS_H__
#define __LIBDOS_H__

void init_libdos();

int get_number_of_lines();
int get_number_of_cols();

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();
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()
{
}

inline void putwch(unsigned c)
{
    putch(static_cast<char>(c));
}

#endif