mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-29 07:58:01 -04:00
selection: track selection type; normal or block selection
This commit is contained in:
parent
1178a7763b
commit
d706e68280
5 changed files with 18 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue