fix #H4343 - obscure tty bug while swallowed
commitfccd29dfd46f6b8f93d36d19cd9dc7fb4b7c9ade
authorPatR <rankin@nethack.org>
Wed, 18 May 2016 23:36:18 +0000 (18 16:36 -0700)
committerPatR <rankin@nethack.org>
Wed, 18 May 2016 23:36:18 +0000 (18 16:36 -0700)
tree87237d4dd83eb535bd598d1fcd791896930884af
parenta242e0d892376d36f8b939b0ed5ba656f7099aa9
fix #H4343 - obscure tty bug while swallowed

When --More-- was written to leftmost column of line 2 while the
hero was swallowed, after player acknowledged it and the top line
was cleared, the cursor ended up in the wrong place.  I still
don't understand what in the world is going on here, but adding
'flush_screen(0)' after 'swallowed(1)' in docorner() makes the
problem go away.  Why is the behavior different when --More-- is
in the first column than when it's anywhere else?

After that fix, I commented the whole thing out.  The swallowed
optimization is just not significant enough to justify peeking at
core internals.

Core bit:  prior to those two changes, I tried inserting 'bot()'
into swallowed().  It moved the mis-positioned cursor from the
end of the second status line to on the map just right of the
bottom right corner of the swallowed display.  That didn't fix
anything, but I've left it in place.  bot() to update status is
needed following cls(); now it happens before redrawing the map
instead of at some point after.
doc/fixes36.1
src/display.c
win/tty/wintty.c