From 6785c9d18e9b85042a7d5fac68bb7813df340b21 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Sat, 5 Feb 2011 03:27:31 -0500 Subject: [PATCH] Ctrl-L repaints screen --- parseraction.cpp | 3 +++ terminal.hpp | 1 + 2 files changed, 4 insertions(+) diff --git a/parseraction.cpp b/parseraction.cpp index 02c927f..097f6fc 100644 --- a/parseraction.cpp +++ b/parseraction.cpp @@ -70,6 +70,9 @@ void UserByte::act_on_terminal( Terminal::Emulator *emu ) { emu->dispatch.terminal_to_host.append( emu->user.input( this, emu->fb.ds.application_mode_cursor_keys ) ); + if ( c == 0x0c ) { /* Ctrl-L */ + emu->display.invalidate(); + } } void Resize::act_on_terminal( Terminal::Emulator *emu ) diff --git a/terminal.hpp b/terminal.hpp index ca6aa25..0f8c3a8 100644 --- a/terminal.hpp +++ b/terminal.hpp @@ -25,6 +25,7 @@ namespace Terminal { {} std::string new_frame( Framebuffer &f ); + void invalidate( void ) { initialized = false; } }; class Emulator {