From cfce7162f4f72eaa77d717c96a4cf299db8f042b Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 13 Feb 2025 12:50:57 -0800 Subject: fullscreen: bug: must redirect helpers to tty. * basta.sh (basta.fullscreen_alt): When calling query_terminal_lines and get_cur_line, we must redirect the input and output to $ttyfd, like we do for our local printf and stty calls. --- basta.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basta.sh b/basta.sh index f402653..9741991 100644 --- a/basta.sh +++ b/basta.sh @@ -341,8 +341,8 @@ basta.fullscreen_alt() { basta_deferred_intr=WINCH LINES=$realrows command "$@" || exit=$? - basta.query_terminal_lines realrows - basta.get_cur_line curline + basta.query_terminal_lines realrows >&$ttyfd <&$ttyfd + basta.get_cur_line curline >&$ttyfd <&$ttyfd if [ $curline -ge $(( realrows - basta_prev_reserved_rows )) ] ; then local scrolls_needed=$(( curline - realrows + basta_prev_reserved_rows )) -- cgit v1.2.3