diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-25 06:29:18 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-25 06:29:18 +0000 |
commit | ce96d334e703f1a087a62b55dd5dd82f35fe5e1e (patch) | |
tree | 441be44a234beceb03328601a6c695f45101d014 /crawl-ref/source/libdos.cc | |
parent | 9f5555209ea63a352cb14aae686cee5d257e5a8c (diff) | |
download | crawl-ref-ce96d334e703f1a087a62b55dd5dd82f35fe5e1e.tar.gz crawl-ref-ce96d334e703f1a087a62b55dd5dd82f35fe5e1e.zip |
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
Diffstat (limited to 'crawl-ref/source/libdos.cc')
-rw-r--r-- | crawl-ref/source/libdos.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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, ""); +} |