summaryrefslogtreecommitdiffstats
path: root/trunk/source/liblinux.h
diff options
context:
space:
mode:
authorpeterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573>2005-07-21 02:34:44 +0000
committerpeterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573>2005-07-21 02:34:44 +0000
commit673bdae75485d14f759af597c3c62b99601f9a43 (patch)
tree368103f29fe0ce5dcf98060d9b5faa04590085fb /trunk/source/liblinux.h
parent7e900be770db24b0405fd2162491c405a425873e (diff)
downloadcrawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.tar.gz
crawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.zip
Initial revision
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'trunk/source/liblinux.h')
-rw-r--r--trunk/source/liblinux.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/trunk/source/liblinux.h b/trunk/source/liblinux.h
new file mode 100644
index 0000000000..a63b625f3a
--- /dev/null
+++ b/trunk/source/liblinux.h
@@ -0,0 +1,53 @@
+#ifndef LIBLINUX_H
+#define LIBLINUX_H
+
+
+// Some replacement routines missing in gcc
+
+#define _NORMALCURSOR 1
+#define _NOCURSOR 0
+#define O_BINARY O_RDWR
+
+char *strlwr(char *str);
+char getche(void);
+
+
+int clrscr(void);
+int cprintf(const char *format,...);
+int gotoxy(int x, int y);
+int itoa(int value, char *strptr, int radix);
+int kbhit(void);
+int key_to_command(int);
+int putch(unsigned char chr);
+int stricmp(const char *str1, const char *str2);
+int translate_keypad(int keyin);
+int wherex(void);
+int wherey(void);
+int window(int x1, int y1, int x2, int y2);
+void update_screen(void);
+void clear_to_end_of_line(void);
+void clear_to_end_of_screen(void);
+int get_number_of_lines_from_curses(void);
+void get_input_line_from_curses( char *const buff, int len );
+
+void _setcursortype(int curstype);
+void delay(unsigned long time);
+void init_key_to_command();
+void lincurses_shutdown(void);
+void lincurses_startup(void);
+void textbackground(int bg);
+void textcolor(int col);
+
+#ifndef _LIBLINUX_IMPLEMENTATION
+/* Some stuff from curses, to remove compiling warnings.. */
+extern "C"
+{
+ int getstr(char *);
+ int getch(void);
+ int noecho(void);
+ int echo(void);
+}
+#endif
+
+
+#endif