From 632790d5d8686be00ce3e0134b940992c99f0df4 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 10 Jul 2019 20:57:09 +0200 Subject: 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 --- terminal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'terminal.h') 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; -- cgit v1.3