aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs
index ea3d1d74..589f1a42 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -10,6 +10,7 @@ use parking_lot::MutexGuard;
use glutin::{self, ModifiersState, Event, ElementState};
use copypasta::{Clipboard, Load, Store};
+use ansi::{Handler, ClearMode};
use grid::Scroll;
use config::{self, Config};
use cli::Options;
@@ -59,6 +60,10 @@ impl<'a, N: Notify + 'a> input::ActionContext for ActionContext<'a, N> {
self.terminal.scroll_display(scroll);
}
+ fn clear_history(&mut self) {
+ self.terminal.clear_screen(ClearMode::Saved);
+ }
+
fn copy_selection(&self, buffer: ::copypasta::Buffer) {
if let Some(selected) = self.terminal.selection_to_string() {
if !selected.is_empty() {