Implement alternate screen

Make it possible for Framebuffer to save and restore the current state
of the screen. get_DEC_mode() in terminalfunctions.cc also needs to be
patched to know the requested operation.

Signed-off-by: Barosl LEE <vcs@barosl.com>