From d706e6828062aa35505d3893fb3c04b84985aa29 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 3 Jan 2020 23:29:45 +0100 Subject: selection: track selection type; normal or block selection --- terminal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'terminal.h') 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; -- cgit v1.3