diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-10 18:57:09 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-11 15:38:01 +0000 |
| commit | 632790d5d8686be00ce3e0134b940992c99f0df4 (patch) | |
| tree | 68a93d71faa269f672d6946ee7e12c102054926d /terminal.h | |
| parent | grid: prefetch cells in grid_row() (diff) | |
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
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 5 |
1 files changed, 5 insertions, 0 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; |
