Move Emulator::{open,close} to Display

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2013-01-27 20:37:09 -05:00
committed by Keith Winstein
parent ba8d013609
commit 03217ddb5a
6 changed files with 19 additions and 20 deletions
-11
View File
@@ -163,17 +163,6 @@ void Emulator::Esc_dispatch( const Parser::Esc_Dispatch *act )
}
}
std::string Emulator::open( void )
{
char appmode[ 6 ] = { 0x1b, '[', '?', '1', 'h', 0 };
return std::string( appmode );
}
std::string Emulator::close( void )
{
return std::string( "\033[?1l\033[0m\033[?25h" );
}
void Emulator::resize( size_t s_width, size_t s_height )
{
fb.resize( s_width, s_height );