summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libw32c.h
diff options
context:
space:
mode:
authornlanza <nlanza@c06c8d41-db1a-0410-9941-cceddc491573>2006-08-13 02:19:00 +0000
committernlanza <nlanza@c06c8d41-db1a-0410-9941-cceddc491573>2006-08-13 02:19:00 +0000
commitaa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f (patch)
treed0551b96eaebb5b55694579fb8dae4abc7a38407 /crawl-ref/source/libw32c.h
parent2b32f164e6ca1c4b3d587789f6cf46f46fe02fe8 (diff)
downloadcrawl-ref-aa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f.tar.gz
crawl-ref-aa88fdd8c6ad2da5eb5bd933e2d53d56cd8c176f.zip
Clean up a mistake in the SVN import.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libw32c.h')
-rw-r--r--crawl-ref/source/libw32c.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/crawl-ref/source/libw32c.h b/crawl-ref/source/libw32c.h
new file mode 100644
index 0000000000..319efb02d8
--- /dev/null
+++ b/crawl-ref/source/libw32c.h
@@ -0,0 +1,47 @@
+#ifndef LIBW32C_H
+#define LIBW32C_H
+
+#define WIN_NUMBER_OF_LINES 25
+
+#include <string>
+// I think the following definition is all we need from STD namespace..
+#ifdef __IBMCPP__ // Borland 5.01 doesn't seem to need this
+typedef std::basic_string<char> string;
+#endif
+
+#include <excpt.h>
+#include <stdarg.h>
+
+#define _NORMALCURSOR true
+#define _NOCURSOR false
+
+void init_libw32c(void);
+void deinit_libw32c(void);
+void _setcursortype(int curstype);
+void clrscr(void);
+void gotoxy(int x, int y);
+void textcolor(int c);
+void cprintf( const char *format, ... );
+// void cprintf(const char *s);
+void setStringInput(bool value);
+bool setBuffering(bool value);
+int getConsoleString(char *buf, int maxlen);
+void print_timings(void);
+
+void window(int x, int y, int lx, int ly);
+int wherex(void);
+int wherey(void);
+void putch(char c);
+int getch(void);
+int getch_ck(void);
+int key_to_command(int);
+int getche(void);
+int kbhit(void);
+void delay(int ms);
+void textbackground(int c);
+
+inline void srandom(unsigned int seed) { srand(seed); }
+
+#endif
+
+