diff options
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r-- | crawl-ref/source/libutil.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc index b2a0fdfe1e..6823a4c932 100644 --- a/crawl-ref/source/libutil.cc +++ b/crawl-ref/source/libutil.cc @@ -683,8 +683,12 @@ void usleep(unsigned long time) #endif #ifndef USE_TILE +static GotoRegion _current_region = GOTO_CRT; + void cgotoxy(int x, int y, GotoRegion region) { + _current_region = region; + ASSERT(x >= 1); ASSERT(y >= 1); switch (region) @@ -710,6 +714,11 @@ void cgotoxy(int x, int y, GotoRegion region) break; } } + +GotoRegion get_cursor_region() +{ + return (_current_region); +} #endif /////////////////////////////////////////////////////////////////////// // Pattern matching |