linux-qubasis

linux oasis port as a qubes template

git clone https://9o.is/git/linux-qubasis.git

commit a48b8fb7eb5c02a501c32fd64e00f83b1e18e569
parent e0c9e557589e3fbfc092a6ea5a960c8e270e6c8e
Author: Jul <jul@9o.is>
Date:   Tue, 14 Oct 2025 12:02:54 +0800

vis patch: only reload ncurses on fullscreen pipe

Diffstat:
Apkg/vis/patch/0005-only-reload-ncurses-if-piped-fullscreen.patch | 36++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+), 0 deletions(-)

diff --git a/pkg/vis/patch/0005-only-reload-ncurses-if-piped-fullscreen.patch b/pkg/vis/patch/0005-only-reload-ncurses-if-piped-fullscreen.patch @@ -0,0 +1,36 @@ +From aefbabd6542ca6918b95c707f44928f69f6c827d Mon Sep 17 00:00:00 2001 +From: Jul <jul@qh.is> +Date: Tue, 14 Oct 2025 12:01:45 +0800 +Subject: [PATCH] only reload ncurses if piped fullscreen + +--- + vis.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/vis.c b/vis.c +index 0c59d57..85d6e30 100644 +--- a/vis.c ++++ b/vis.c +@@ -1627,7 +1627,8 @@ static int _vis_pipe(Vis *vis, File *file, Filerange *range, const char* buf, co + return -1; + } + +- ui_terminal_save(&vis->ui, fullscreen); ++ if (fullscreen) ++ ui_terminal_save(&vis->ui, fullscreen); + pid_t pid = fork(); + + if (pid == -1) { +@@ -1837,7 +1838,8 @@ err: + sigaction(SIGTERM, &sigterm_old, NULL); + + vis->interrupted = false; +- ui_terminal_restore(&vis->ui); ++ if (fullscreen) ++ ui_terminal_restore(&vis->ui); + + if (WIFEXITED(status)) + return WEXITSTATUS(status); +-- +2.51.0 +