summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-17 19:45:07 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-17 19:45:07 +0000
commitb7516d279965cc139c24507688047172bb7a0f7f (patch)
treefbf8b141c74def2fbfe2fb343e457dad0ae24cb7 /crawl-ref/source/acr.cc
parent23c5277317de657f8376d1b5f33144948a811a42 (diff)
downloadcrawl-ref-b7516d279965cc139c24507688047172bb7a0f7f.tar.gz
crawl-ref-b7516d279965cc139c24507688047172bb7a0f7f.zip
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
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc6
1 files changed, 6 insertions, 0 deletions
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