From ce96d334e703f1a087a62b55dd5dd82f35fe5e1e Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 25 Dec 2006 06:29:18 +0000 Subject: Fix broken DOS and Windows compiles. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@703 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libdos.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crawl-ref/source/libdos.cc') diff --git a/crawl-ref/source/libdos.cc b/crawl-ref/source/libdos.cc index 86c7aec1b6..b105896ba9 100644 --- a/crawl-ref/source/libdos.cc +++ b/crawl-ref/source/libdos.cc @@ -33,3 +33,12 @@ bool is_cursor_enabled() { return (cursor_is_enabled); } + +// This will force the cursor down to the next line. +void clear_to_end_of_line() +{ + const int pos = wherex(); + const int cols = get_number_of_cols(); + if (pos <= cols) + cprintf("%*s", cols - pos + 1, ""); +} -- cgit v1.2.3-54-g00ecf