diff options
author | Joe Wilm <joe@jwilm.com> | 2018-02-15 18:35:49 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:32:29 -0700 |
commit | 45c2b3fbf72fa6dfd36bee590e64314c6da7c6c2 (patch) | |
tree | 9f68a9692d0d0754264931d26e1a7cf0400471ed /src/event.rs | |
parent | 94796a70fcbc11df2dc642057fef242466822067 (diff) | |
download | alacritty-45c2b3fbf72fa6dfd36bee590e64314c6da7c6c2.tar.gz alacritty-45c2b3fbf72fa6dfd36bee590e64314c6da7c6c2.zip |
checkpoint: very basic scrolling works
Things that do not work
- Limiting how far back in the buffer it's possible to scroll
- Selections (need to transform to buffer offsets)
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs index 4ae25860..9c3e8edc 100644 --- a/src/event.rs +++ b/src/event.rs @@ -55,6 +55,10 @@ impl<'a, N: Notify + 'a> input::ActionContext for ActionContext<'a, N> { *self.size_info } + fn scroll(&mut self, count: isize) { + self.terminal.scroll_display(count); + } + fn copy_selection(&self, buffer: ::copypasta::Buffer) { if let Some(ref selection) = *self.selection { if let Some(ref span) = selection.to_span(self.terminal) { |