aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--basta.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/basta.sh b/basta.sh
index f6b0b12..7dd109b 100644
--- a/basta.sh
+++ b/basta.sh
@@ -328,13 +328,15 @@ basta.fullscreen()
shift
saveterm=y
printf $'\e[?1049h' >&$ttyfd
+ else
+ basta_deferred_intr=WINCH
+ printf $'\e[J' >&$ttyfd
fi
+
printf $'\e7\e[1;%sr\e8' $realrows >&$ttyfd
stty rows $realrows <&$ttyfd
- [ $saveterm ] || printf $'\e[J' >&$ttyfd && basta_deferred_intr=WINCH
-
LINES=$realrows command "$@" || exit=$?
if [ $saveterm ] ; then