scroll past env.lat output before starting TUI

When running via env.lat, push the cursor to the bottom of the screen
before print_block sets up the TUI, so we don't overwrite env.lat output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Anton Volnuhin 2026-03-04 18:23:52 +03:00
parent 95c88c3ce1
commit 948d862bb6

View File

@ -184,6 +184,10 @@ fi
if [ "$NON_INTERACTIVE" -eq 0 ]; then if [ "$NON_INTERACTIVE" -eq 0 ]; then
LINES=$(tput lines) LINES=$(tput lines)
if [ -n "$ENVLAT" ]; then
# Scroll env.lat output into scrollback so the TUI starts clean
printf '\n%.0s' $(seq 1 $LINES)
fi
print_block print_block
# Pre-fill env.lat bootstrap steps as already completed # Pre-fill env.lat bootstrap steps as already completed
if [ -n "$ENVLAT" ]; then if [ -n "$ENVLAT" ]; then