aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-27 17:33:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-27 17:33:19 +0000
commitaee5045395ca2393b60d962e6e9440a59edbfd6e (patch)
treeccefc88a47ed6da439973fdc913fd5c8595f4a6d /terminal.h
parentsearch: wip: re-direct input while searching, and build a search buffer (diff)
search: wip: initial search matching
* match search buffer against scrollback content * adjust view to ensure matched content is visible * create selection on a successful match * finalize selection when user presses enter (to "commit" the search) * ctrl+r searches for the next match. Needs more work though.
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 fbd734bc..5989788a 100644
--- a/terminal.h
+++ b/terminal.h
@@ -336,6 +336,11 @@ struct terminal {
wchar_t *buf;
size_t len;
size_t sz;
+
+ int original_view;
+ bool view_followed_offset;
+ struct coord match;
+ size_t match_len;
} search;
struct grid normal;