aboutsummaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index 16589da..c22f26a 100644
--- a/ui.c
+++ b/ui.c
@@ -284,6 +284,16 @@ int main(int argc, char *argv[]) {
// mvprintw(0, 0, "%ix%i", COLS, LINES);
// refresh();
break;
+ case 'j':
+ screen.top_address += LINE_LEN;
+ draw_screen(ctx, bv);
+ refresh();
+ break;
+ case 'k':
+ screen.top_address -= LINE_LEN;
+ draw_screen(ctx, bv);
+ refresh();
+ break;
case KEY_ENTER:
goto end;
}