* fhandler.h (class fhandler_console): Add members `savebufsiz' and

`savebuf' to allow save/restore of screen.
        * fhandler_console.cc (fhandler_console::dup): Duplicate savebuf.
        (fhandler_console::fhandler_console): Initialize `savebufsiz' and
        `savebuf'.
        (fhandler_console::char_command): Add terminal capabilities
        "save screen content" = \E[?47h and "restore screen content" = \E[?47l.
This commit is contained in:
Corinna Vinschen
2001-03-30 11:10:13 +00:00
parent 0694d8d310
commit f42da31ad6
3 changed files with 65 additions and 0 deletions

View File

@@ -630,6 +630,10 @@ private:
/* saved cursor coordinates */
int savex, savey;
/* saved screen */
COORD savebufsiz;
PCHAR_INFO savebuf;
struct
{
short Top, Bottom;