aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-02-13 12:50:57 -0800
committerKaz Kylheku <kaz@kylheku.com>2025-02-13 12:50:57 -0800
commitcfce7162f4f72eaa77d717c96a4cf299db8f042b (patch)
treee1a7a1fe6ec1a7a5d3da98bd9956301229e3bd51
parent6827538fbf6f9646535b76c2450aa66576cb27a4 (diff)
downloadbasta-cfce7162f4f72eaa77d717c96a4cf299db8f042b.tar.gz
basta-cfce7162f4f72eaa77d717c96a4cf299db8f042b.tar.bz2
basta-cfce7162f4f72eaa77d717c96a4cf299db8f042b.zip
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.
-rw-r--r--basta.sh4
1 files 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 ))