aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-03 22:29:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-03 22:29:45 +0000
commitd706e6828062aa35505d3893fb3c04b84985aa29 (patch)
tree0d9489a327012c52fdb93f1a2761fce483108659 /terminal.h
parentwayland: window: optimize: set opaque region (diff)
selection: track selection type; normal or block selection
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index eb3b7f1e..e0b8d44a 100644
--- a/terminal.h
+++ b/terminal.h
@@ -157,6 +157,8 @@ enum mouse_reporting {
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
+enum selection_kind { SELECTION_NORMAL, SELECTION_BLOCK };
+
struct ptmx_buffer {
void *data;
size_t len;
@@ -248,6 +250,7 @@ struct terminal {
const char *xcursor;
struct {
+ enum selection_kind kind;
struct coord start;
struct coord end;
} selection;