summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-27 15:59:10 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-27 15:59:10 +0000
commiteb7baf83704e5ffa3d0059e8db34b3c3508b2428 (patch)
treebf46bfe4012e9d369c1a4f915e4037c417598ba1 /crawl-ref/source/libunix.h
parent64c0b7fe918fdc3bc41483b17f6796d3273ac05a (diff)
downloadcrawl-ref-eb7baf83704e5ffa3d0059e8db34b3c3508b2428.tar.gz
crawl-ref-eb7baf83704e5ffa3d0059e8db34b3c3508b2428.zip
Minor view code cleanup; this ought to fix the DOS redraw issues as well.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2629 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libunix.h')
-rw-r--r--crawl-ref/source/libunix.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/libunix.h b/crawl-ref/source/libunix.h
index cee2e6577e..ee424433df 100644
--- a/crawl-ref/source/libunix.h
+++ b/crawl-ref/source/libunix.h
@@ -7,6 +7,12 @@
#define O_BINARY O_RDWR
#endif
+#ifdef UNICODE_GLYPHS
+typedef unsigned int screen_buffer_t;
+#else
+typedef unsigned short screen_buffer_t;
+#endif
+
char getche(void);
void message_out(int mline, int colour, const char *str, int firstcol = 0,
@@ -30,6 +36,7 @@ int translate_keypad(int keyin);
int wherex(void);
int wherey(void);
int window(int x1, int y1, int x2, int y2);
+void puttext(int x1, int y1, int x2, int y2, const screen_buffer_t *);
void update_screen(void);
void clear_to_end_of_line(void);
void clear_to_end_of_screen(void);
@@ -41,6 +48,7 @@ void unixcurses_startup(void);
void textbackground(int bg);
void textcolor(int col);
void textattr(int col);
+int cset_adjust(int raw);
void set_altcharset(bool alt_on);
bool get_altcharset();