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
+2 -2
View File
@@ -232,7 +232,7 @@ void emulate_terminal( int fd )
sel.add_fd( fd );
sel.add_signal( SIGWINCH );
swrite( STDOUT_FILENO, Terminal::Emulator::open().c_str() );
swrite( STDOUT_FILENO, display.open().c_str() );
int timeout = -1;
@@ -315,5 +315,5 @@ void emulate_terminal( int fd )
std::string update = display.new_frame( true, state, complete.get_fb() );
swrite( STDOUT_FILENO, update.c_str() );
swrite( STDOUT_FILENO, Terminal::Emulator::close().c_str() );
swrite( STDOUT_FILENO, display.close().c_str() );
}