aboutsummaryrefslogtreecommitdiffstats
path: root/basta.sh
diff options
context:
space:
mode:
Diffstat (limited to 'basta.sh')
-rw-r--r--basta.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/basta.sh b/basta.sh
index 271caa0..8782177 100644
--- a/basta.sh
+++ b/basta.sh
@@ -4,6 +4,7 @@ basta_old_cmdno=${basta_old_cmdno-0}
basta_old_lines=${basta_old_lines-0}
basta_old_cols=${basta_old_cols-0}
+basta_scroll_lines=${basta_scroll_lines-$LINES}
basta_prev_reserved_rows=${basta_prev_reserved_rows-}
basta_status_alarm_pid=${basta_status_alarm_pid-}
@@ -24,7 +25,8 @@ basta.prepare_term()
printf "\n\033[A"
fi
- stty rows $((LINES - existing_reserved-rows - 1))
+ basta_scroll_lines=$((LINES - 1))
+ stty rows $basta_scroll_lines
basta_old_lines=$LINES
basta_old_cols=$COLUMNS
}
@@ -102,7 +104,7 @@ basta.prompt_hook()
basta.check_cursor
basta.do_exit_status $exit
basta.update_status
- stty sane
+ stty sane rows $basta_scroll_lines
}
basta.alarm_timer()