mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
selection: selections can be made, and are rendered
* Start selection on mouse button down * Update selection on motion * Button release cancels selection if there were no motion after start * Renderer detects cells inside the selection and inverts their colors
This commit is contained in:
parent
decb4503bf
commit
632790d5d8
4 changed files with 57 additions and 1 deletions
|
|
@ -228,6 +228,11 @@ struct terminal {
|
|||
struct coord saved_cursor;
|
||||
struct coord alt_saved_cursor;
|
||||
|
||||
struct {
|
||||
struct coord start;
|
||||
struct coord end;
|
||||
} selection;
|
||||
|
||||
struct grid normal;
|
||||
struct grid alt;
|
||||
struct grid *grid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue