pub enum PhysicalAction {
Nothing,
Beep,
+ Refresh,
Exit,
Error(TuiError),
}
break 'outer Ok(());
}
+ PhysicalAction::Refresh => {
+ self.terminal.clear()?;
+ }
+
PhysicalAction::Error(err) => {
break 'outer Err(err);
}
break 'outer Ok(());
}
+ PhysicalAction::Refresh => {
+ self.terminal.clear()?;
+ }
+
PhysicalAction::Error(err) => {
break 'outer Err(err);
}
OurKey::Escape => LogicalAction::Goto(
UtilityActivity::UtilsMenu.into()),
+ // ^L forces a full screen redraw, in case your terminal
+ // was corrupted by extraneous output. And again it should
+ // do it absolutely anywhere.
+ OurKey::Ctrl('L') => return PhysicalAction::Refresh,
+
_ => if let Some(ref mut state) = self.overlay_activity_state {
state.handle_keypress(key, client)
} else {