From 7fe67743ebffd047532f6271bf28474f9d947f64 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Fri, 16 Feb 2018 17:33:32 -0800 Subject: Scroll to bottom on character received --- src/grid/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/grid/mod.rs') diff --git a/src/grid/mod.rs b/src/grid/mod.rs index 23ee9cf4..c6543270 100644 --- a/src/grid/mod.rs +++ b/src/grid/mod.rs @@ -108,6 +108,10 @@ impl Grid { ); } + pub fn reset_scroll(&mut self) { + self.display_offset = 0; + } + pub fn new(lines: index::Line, cols: index::Column, template: T) -> Grid { let mut raw = Storage::with_capacity(*lines + SCROLLBACK_LINES, lines); let template_row = Row::new(cols, &template); -- cgit v1.2.3-54-g00ecf