You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new_installer.py: fix line wrap issues (spack#52193)
In the "active area" of the terminal UI, downwards cursor movement is
used instead of `\n` to prevent flickering. The variable
`active_area_rows` keeps track on how many lines cursor movement can be
used, and any new builds would use `\n` instead (to scroll the terminal
when needed).
However, after spack#52163 the finished builds were printed *without*
truncating to terminal width, and typically exceed it. This means they
can consume multiple lines from the "active area" of running builds, and
as a result the new "active area" is actualy fewer lines.
To fix this, reset `active_area_rows` to 0, which forces `\n` instead of
cursor movement.
Use the same trick when the terminal resizes. A narrower/wider terminal
can result in line wrapping, so better not to rely on cursor movement as
much.
Signed-off-by: Harmen Stoppels <me@harmenstoppels.nl>
0 commit comments