summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libdos.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-12 08:41:34 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-12 08:41:34 +0000
commit7a592cc1f6ccc109172b0653f0eb43fd8f1c40a2 (patch)
tree29667502b0de5bc7664f4b93b7693ed3236030f9 /crawl-ref/source/libdos.cc
parent4a36706dfc155fbf554767e537451a8a037b209b (diff)
downloadcrawl-ref-7a592cc1f6ccc109172b0653f0eb43fd8f1c40a2.tar.gz
crawl-ref-7a592cc1f6ccc109172b0653f0eb43fd8f1c40a2.zip
First steps towards making delay_message_clear useful. The intent is to use a
scrolling message window and show --more-- only when the message window is filled with new messages since the last mesclr (as suggested by Eidolos/doy on ##crawl). This currently works only on curses (breaks the DOS and Windows compiles), I'm working on fixing that. There are also some cursor glitches with prompts at the bottom of the message window that I need to fix. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@837 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libdos.cc')
-rw-r--r--crawl-ref/source/libdos.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/libdos.cc b/crawl-ref/source/libdos.cc
index b105896ba9..ba1e177c77 100644
--- a/crawl-ref/source/libdos.cc
+++ b/crawl-ref/source/libdos.cc
@@ -23,6 +23,13 @@ void init_libdos()
tcsetattr (0, TCSANOW, &charmode);
}
+void clear_message_window()
+{
+ window(1, 18, 78, 25);
+ clrscr();
+ window(1, 1, 80, 25);
+}
+
void set_cursor_enabled(bool enabled)
{
cursor_is_enabled = enabled;
@@ -42,3 +49,13 @@ void clear_to_end_of_line()
if (pos <= cols)
cprintf("%*s", cols - pos + 1, "");
}
+
+int get_number_of_lines()
+{
+ return (25);
+}
+
+int get_number_of_cols()
+{
+ return (80);
+}