aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-04 13:36:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-04 13:36:11 +0000
commit0b99ed7a55be6b29a7029032f04b9d8141a00b8b (patch)
tree92bc43a1de5d593071a72d07f8ad384b1642138e /terminal.h
parentwayland: window: optimize: set opaque region (diff)
parentselection: min_bufsize_for_extraction: add one extra column for *all* rows (diff)
Merge branch 'block-selection'
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index eb3b7f1e..9d28ff41 100644
--- a/terminal.h
+++ b/terminal.h
@@ -41,7 +41,8 @@ struct attributes {
uint32_t clean:1;
uint32_t have_fg:1;
uint32_t have_bg:1;
- uint32_t reserved:5;
+ uint32_t selected:1;
+ uint32_t reserved:4;
uint32_t bg:24;
};
static_assert(sizeof(struct attributes) == 8, "bad size");
@@ -157,6 +158,8 @@ enum mouse_reporting {
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
+enum selection_kind { SELECTION_NONE, SELECTION_NORMAL, SELECTION_BLOCK };
+
struct ptmx_buffer {
void *data;
size_t len;
@@ -248,6 +251,7 @@ struct terminal {
const char *xcursor;
struct {
+ enum selection_kind kind;
struct coord start;
struct coord end;
} selection;