From c422f3dd50d56d08862ea69256cea1790345a44b Mon Sep 17 00:00:00 2001 From: Gerardo Orellana Date: Sat, 25 Jun 2011 20:28:23 -0500 Subject: [PATCH] added a key shortcut to scroll top/bottom --- goaccess.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/goaccess.c b/goaccess.c index 2836e98ef2..27b8c314d8 100644 --- a/goaccess.c +++ b/goaccess.c @@ -390,6 +390,16 @@ get_keys (void) refresh (); render_screens (); break; + case 98: /* SCRL DOWN */ + werase (main_win); + scrolling.init_scrl_main_win = logger->alloc_counter - real_size_y; + render_screens (); + break; + case 116: /* SCRL UP */ + werase (main_win); + scrolling.init_scrl_main_win = 0; + render_screens (); + break; default: if (piping) break;