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
@@ -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() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user