aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index b6fb2aec..0a71abb4 100644
--- a/terminal.h
+++ b/terminal.h
@@ -182,6 +182,7 @@ enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
enum selection_kind { SELECTION_NONE, SELECTION_NORMAL, SELECTION_BLOCK };
enum selection_direction {SELECTION_UNDIR, SELECTION_LEFT, SELECTION_RIGHT};
+enum selection_scroll_direction {SELECTION_SCROLL_UP, SELECTION_SCROLL_DOWN};
struct ptmx_buffer {
void *data;
@@ -346,6 +347,12 @@ struct terminal {
struct coord start;
struct coord end;
bool ongoing;
+
+ struct {
+ int fd;
+ int col;
+ enum selection_scroll_direction direction;
+ } auto_scroll;
} selection;
bool is_searching;