summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.c b/main.c
index c7ca2cc..d3b0c62 100644
--- a/main.c
+++ b/main.c
@@ -133,6 +133,16 @@ int main() {
pnoutrefresh(pad, padscroll, 0, 4, 1, HEIGHT-2, WIDTH-1);
doupdate();
break;
+ case KEY_HOME:
+ padscroll = 0;
+ pnoutrefresh(pad, padscroll, 0, 4, 1, HEIGHT-2, WIDTH-1);
+ doupdate();
+ break;
+ case KEY_END:
+ padscroll = duration;
+ pnoutrefresh(pad, padscroll, 0, 4, 1, HEIGHT-2, WIDTH-1);
+ doupdate();
+ break;
case 'q':
display_custom_form(form);
formactive = TRUE;