From 80fbb7e1ead4d16f1f4d511d30df18eeb65ceafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Bakker?= Date: Fri, 16 Jun 2023 11:59:25 +0200 Subject: 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). --- ui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.h') 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*); -- cgit v1.2.3