Ctrl-L repaints screen

This commit is contained in:
Keith Winstein
2011-02-05 03:27:31 -05:00
parent eda2300a94
commit 6785c9d18e
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -70,6 +70,9 @@ void UserByte::act_on_terminal( Terminal::Emulator *emu )
{ {
emu->dispatch.terminal_to_host.append( emu->user.input( this, emu->dispatch.terminal_to_host.append( emu->user.input( this,
emu->fb.ds.application_mode_cursor_keys ) ); emu->fb.ds.application_mode_cursor_keys ) );
if ( c == 0x0c ) { /* Ctrl-L */
emu->display.invalidate();
}
} }
void Resize::act_on_terminal( Terminal::Emulator *emu ) void Resize::act_on_terminal( Terminal::Emulator *emu )
+1
View File
@@ -25,6 +25,7 @@ namespace Terminal {
{} {}
std::string new_frame( Framebuffer &f ); std::string new_frame( Framebuffer &f );
void invalidate( void ) { initialized = false; }
}; };
class Emulator { class Emulator {