aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-10 18:57:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-11 15:38:01 +0000
commit632790d5d8686be00ce3e0134b940992c99f0df4 (patch)
tree68a93d71faa269f672d6946ee7e12c102054926d /terminal.h
parentgrid: 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index fdb86a81..1e56567f 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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;