selection: track selection type; normal or block selection

This commit is contained in:
Daniel Eklöf 2020-01-03 23:29:45 +01:00
parent 1178a7763b
commit d706e68280
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 18 additions and 7 deletions

View file

@ -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;