Put the real terminal in alternate screen mode
Closes #2 Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Keith Winstein
parent
2ae960f7f0
commit
ed42d31bda
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user