diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-04 13:36:11 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-04 13:36:11 +0000 |
| commit | 0b99ed7a55be6b29a7029032f04b9d8141a00b8b (patch) | |
| tree | 92bc43a1de5d593071a72d07f8ad384b1642138e /terminal.h | |
| parent | wayland: window: optimize: set opaque region (diff) | |
| parent | selection: 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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |
