aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/input.c b/input.c
index dd9d604e..65dbba0b 100644
--- a/input.c
+++ b/input.c
@@ -88,13 +88,31 @@ execute_binding(struct seat *seat, struct terminal *term,
return true;
case BIND_ACTION_SCROLLBACK_UP:
+ case BIND_ACTION_SCROLLBACK_UP_PAGE:
cmd_scrollback_up(term, term->rows);
return true;
+ case BIND_ACTION_SCROLLBACK_UP_HALF_PAGE:
+ cmd_scrollback_up(term, max(term->rows / 2, 1));
+ return true;
+
+ case BIND_ACTION_SCROLLBACK_UP_LINE:
+ cmd_scrollback_up(term, 1);
+ return true;
+
case BIND_ACTION_SCROLLBACK_DOWN:
+ case BIND_ACTION_SCROLLBACK_DOWN_PAGE:
cmd_scrollback_down(term, term->rows);
return true;
+ case BIND_ACTION_SCROLLBACK_DOWN_HALF_PAGE:
+ cmd_scrollback_down(term, max(term->rows / 2, 1));
+ return true;
+
+ case BIND_ACTION_SCROLLBACK_DOWN_LINE:
+ cmd_scrollback_down(term, 1);
+ return true;
+
case BIND_ACTION_CLIPBOARD_COPY:
selection_to_clipboard(seat, term, serial);
return true;