diff options
author | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-12-01 01:48:07 -0800 |
---|---|---|
committer | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-12-01 01:48:07 -0800 |
commit | 8ad1d470a11dfe99d28a4f5228a3fef335f692d1 (patch) | |
tree | 07ea956bd16b31c29e5519ac12ef1ce08f3210a1 /src/main.rs | |
parent | b4fb36eff862aac3be64b3a15666184697350aea (diff) |
basic info log scroll support. uses home/end right now
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index d8ef738..7595ea0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -334,15 +334,18 @@ fn handle_input(event: termion::event::Event, tweeter: &mut tw::TwitterCache, qu } } }, - Event::Key(Key::End) => { - display_info.infos_seek = 0; - } Event::Key(Key::PageUp) => { display_info.infos_seek = display_info.infos_seek.saturating_add(1); } Event::Key(Key::PageDown) => { display_info.infos_seek = display_info.infos_seek.saturating_sub(1); } + Event::Key(Key::Home) => { + display_info.log_seek = display_info.log_seek.saturating_add(1); + } + Event::Key(Key::End) => { + display_info.log_seek = display_info.log_seek.saturating_sub(1); + } Event::Key(Key::Esc) => { display_info.mode = None; } |