diff options
author | Joe Wilm <joe@jwilm.com> | 2018-02-15 18:35:49 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-03-07 09:47:21 -0800 |
commit | cfc4ebfd6a2fb39ae98ba37c215a4a9141865e01 (patch) | |
tree | 604b757b2d0f2754359a73b2bf682e6e5d0650ed /src/event.rs | |
parent | 6d1d41f8c77968547b43603db51a5efeac21a400 (diff) | |
download | alacritty-cfc4ebfd6a2fb39ae98ba37c215a4a9141865e01.tar.gz alacritty-cfc4ebfd6a2fb39ae98ba37c215a4a9141865e01.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 8c4107ca..d0d9a8da 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 { selection.to_span(self.terminal) |