diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-10-12 18:20:26 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-10-12 18:20:26 +0000 |
| commit | d75e50230eb91b87bf6880177bd9fe32ab964140 (patch) | |
| tree | c0ad7e70f744f80bb7023da957d1ba141ae859f5 /terminal.h | |
| parent | Merge branch 'releases/1.5' into master (diff) | |
| parent | selection: auto-scroll: call cmd_scrollback_{up,down}() with number of rows (diff) | |
Merge branch 'scroll-up-down-while-selecting' into master
Closes #149
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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_NOT, SELECTION_SCROLL_UP, SELECTION_SCROLL_DOWN}; struct ptmx_buffer { void *data; @@ -349,6 +350,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; |
