aboutsummaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
authorJörg Bakker <captaingroove@openmultimedia.org>2023-06-16 11:59:25 +0200
committerRandy Palamar <palamar@ualberta.ca>2023-07-18 21:06:46 -0600
commit80fbb7e1ead4d16f1f4d511d30df18eeb65ceafa (patch)
tree106950ed5bdcfbc14b18c6bc8e96df92aa951268 /ui.h
parent599ced0bfc378682053484a9658bd59c02c96973 (diff)
downloadvis-80fbb7e1ead4d16f1f4d511d30df18eeb65ceafa.tar.gz
vis-80fbb7e1ead4d16f1f4d511d30df18eeb65ceafa.tar.xz
Add fullscreen param to vis_pipe_collect() and Lua API vis:pipe()
This enables restoring the terminal from a fullscreen command like curses based program. Use cases are e.g. a file picker based on some external program like nnn (https://github.com/jarun/nnn).
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.h b/ui.h
index d87384a..94b45f5 100644
--- a/ui.h
+++ b/ui.h
@@ -99,7 +99,7 @@ struct Ui {
void (*suspend)(Ui*);
void (*resume)(Ui*);
bool (*getkey)(Ui*, TermKeyKey*);
- void (*terminal_save)(Ui*);
+ void (*terminal_save)(Ui*, bool fscr);
void (*terminal_restore)(Ui*);
TermKey* (*termkey_get)(Ui*);
int (*colors)(Ui*);