From b7516d279965cc139c24507688047172bb7a0f7f Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 17 Jun 2007 19:45:07 +0000 Subject: Basic SIGWINCH handling for Unix. Still needs to handle some cases (resizing the term in the level-map doesn't work right, for instance). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1593 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/acr.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/acr.cc') diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index d121b1cef0..7d8ca311bc 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -912,12 +912,18 @@ static void input() return; } + if (crawl_state.terminal_resized) + handle_terminal_resize(); + { // Enable the cursor to read input. The cursor stays on while // the command is being processed, so subsidiary prompts // shouldn't need to turn it on explicitly. cursor_control con(true); + + crawl_state.waiting_for_comand = true; command_type cmd = get_next_cmd(); + crawl_state.waiting_for_comand = 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