summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-19 16:49:46 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-19 16:49:46 +0000
commitc110d51c2f1df0407515223236ac1e5310b04097 (patch)
tree57b3271eada328a59e90d38e9b5b0d4668b01c83 /crawl-ref/source/acr.cc
parent2c2e3d8ab298b1f6bde3dc5f1125fd1a3c8c2ef4 (diff)
downloadcrawl-ref-c110d51c2f1df0407515223236ac1e5310b04097.tar.gz
crawl-ref-c110d51c2f1df0407515223236ac1e5310b04097.zip
Handle terminal resize on Windows (brute force; Windows has fascinatingly
stupid ideas of when the terminal is actually resized). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1604 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 2c6ab89b92..022c264ec7 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -912,6 +912,7 @@ static void input()
return;
}
+ crawl_state.check_term_size();
if (crawl_state.terminal_resized)
handle_terminal_resize();
@@ -921,9 +922,9 @@ static void input()
// shouldn't need to turn it on explicitly.
cursor_control con(true);
- crawl_state.waiting_for_comand = true;
+ crawl_state.waiting_for_command = true;
command_type cmd = get_next_cmd();
- crawl_state.waiting_for_comand = false;
+ crawl_state.waiting_for_command = false;
// [dshaligram] If get_next_cmd encountered a Lua macro
// binding, your turn may be ended by the first invoke of the