Move Emulator::{open,close} to Display
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Keith Winstein
parent
ba8d013609
commit
03217ddb5a
@@ -44,6 +44,16 @@ static const Renditions & initial_rendition( void )
|
||||
return blank;
|
||||
}
|
||||
|
||||
std::string Display::open() const
|
||||
{
|
||||
return std::string( "\033[?1h" );
|
||||
}
|
||||
|
||||
std::string Display::close() const
|
||||
{
|
||||
return std::string( "\033[?1l\033[0m\033[?25h" );
|
||||
}
|
||||
|
||||
std::string Display::new_frame( bool initialized, const Framebuffer &last, const Framebuffer &f ) const
|
||||
{
|
||||
FrameState frame( last );
|
||||
|
||||
Reference in New Issue
Block a user