diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-14 08:18:30 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-14 08:18:30 +0000 |
commit | 452ed6cd7cd5a05714bc6232c7d82319b5641b75 (patch) | |
tree | 566b55fb710803b68b97fe003323e4fca1435e6c /crawl-ref/source/libunix.cc | |
parent | 1a1f3147355bf89c94f26108080e618b0919314b (diff) | |
download | crawl-ref-452ed6cd7cd5a05714bc6232c7d82319b5641b75.tar.gz crawl-ref-452ed6cd7cd5a05714bc6232c7d82319b5641b75.zip |
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
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r-- | crawl-ref/source/libunix.cc | 9 |
1 files changed, 8 insertions, 1 deletions
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); |