diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-02-13 12:50:57 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-02-13 12:50:57 -0800 |
commit | cfce7162f4f72eaa77d717c96a4cf299db8f042b (patch) | |
tree | e1a7a1fe6ec1a7a5d3da98bd9956301229e3bd51 | |
parent | 6827538fbf6f9646535b76c2450aa66576cb27a4 (diff) | |
download | basta-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.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 )) |