diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-27 17:33:19 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-27 17:33:19 +0000 |
| commit | aee5045395ca2393b60d962e6e9440a59edbfd6e (patch) | |
| tree | ccefc88a47ed6da439973fdc913fd5c8595f4a6d /terminal.h | |
| parent | search: 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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |
