Improve cursor store/restore on smcup/rmcup.
commitf95352946080be803b794c9f2733d8c809c1a39a
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Sat, 3 Apr 2010 04:52:53 +0000 (3 00:52 -0400)
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Sat, 3 Apr 2010 04:52:53 +0000 (3 00:52 -0400)
tree8b458cd585c4b54295fdff356ff844ada1315afa
parentd6e9eb25e92e548f86ffd78a604022c47303aacc
Improve cursor store/restore on smcup/rmcup.

When going to alternate screen buffer on smcup, the terminal is
supposed to store the cursor position, rendition etc. Screen used to
store only the position (and that was just a little buggy anyway).
So change this behaviour to store all information about the cursor,
and restore everything on rmcup.

Apparently, the terminal is supposed to store the cursor for smcup
(CSI ? 1049 h) and DECSC (ESC 7, CSI s, CSI ? 1048 h) separately. So
be it.
src/ansi.c
src/resize.c
src/window.h