Put the real terminal in alternate screen mode

Closes #2

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2013-01-27 20:38:30 -05:00
committed by Keith Winstein
parent 2ae960f7f0
commit ed42d31bda
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -46,12 +46,12 @@ static const Renditions & initial_rendition( void )
std::string Display::open() const
{
return std::string( "\033[?1h" );
return std::string( smcup ? smcup : "" ) + std::string( "\033[?1h" );
}
std::string Display::close() const
{
return std::string( "\033[?1l\033[0m\033[?25h" );
return std::string( "\033[?1l\033[0m\033[?25h" ) + std::string( rmcup ? rmcup : "" );
}
std::string Display::new_frame( bool initialized, const Framebuffer &last, const Framebuffer &f ) const