aboutsummaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r--src/term/mod.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index c8017262..8e973b0b 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -831,6 +831,22 @@ impl Term {
pub fn reset_scroll(&mut self) {
self.grid.reset_scroll_display();
+ self.dirty = true;
+ }
+
+ pub fn scroll_to_top(&mut self) {
+ self.grid.scroll_to_top();
+ self.dirty = true;
+ }
+
+ pub fn scroll_page_up(&mut self) {
+ self.grid.scroll_page_up();
+ self.dirty = true;
+ }
+
+ pub fn scroll_page_down(&mut self) {
+ self.grid.scroll_page_down();
+ self.dirty = true;
}
#[inline]