From 452ed6cd7cd5a05714bc6232c7d82319b5641b75 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 14 Jan 2007 08:18:30 +0000 Subject: Make cursor munging happen for every message output, not just when window scrolls. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@849 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libunix.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index 69d1859a53..e58c4f5bf2 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -275,7 +275,14 @@ void message_out(int which_line, int color, const char *s, int firstcol, getyx(Message_Window, y, x); scroll(Message_Window); wmove(Message_Window, y - 1, x); - move(y - 1 + VIEW_EY, x); + } + + // Fix stdscr cursor to same place as Message_Window cursor. This + // is necessary because when reading input we use stdscr. + { + int x, y; + getyx(Message_Window, y, x); + move(y + VIEW_EY, x); } wrefresh(Message_Window); -- cgit v1.2.3-54-g00ecf