aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-13 04:23:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-13 04:23:49 +0000
commitfc154fcf3af0357d1fd5e90923c77631f8dfe405 (patch)
tree7fbbbac48c9a2938b38a979dc2399867c22a6cd9 /terminal.h
parentMerge branch 'custom-selection-colors' into master (diff)
parentselection: adjust start point when the selection changes direction (diff)
Merge branch 'selection-inversion' into master
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 1b41848d..14c12a62 100644
--- a/terminal.h
+++ b/terminal.h
@@ -181,6 +181,7 @@ enum mouse_reporting {
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};
struct ptmx_buffer {
void *data;
@@ -306,6 +307,7 @@ struct terminal {
struct {
enum selection_kind kind;
+ enum selection_direction direction;
struct coord start;
struct coord end;
} selection;