From c110d51c2f1df0407515223236ac1e5310b04097 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 19 Jun 2007 16:49:46 +0000 Subject: 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 --- crawl-ref/source/acr.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/acr.cc') 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 -- cgit v1.2.3-54-g00ecf