Skip to content

Fix the live monitor line cut short or wrapping - #123

Merged
archetipico merged 1 commit into
mainfrom
fix_monitor_width
Oct 22, 2026
Merged

archetipico merged 1 commit into
mainfrom
fix_monitor_width

Conversation

@MasterCruelty

Copy link
Copy Markdown
Owner

The monitor read the terminal width with tput inside its background subshell, where stdout is the substitution's pipe and stdin is /dev/null, so it always got 80: on a wider terminal the text next to the progress bar was cut as if the terminal were 80 columns wide. tput now reads /dev/tty.

The space left for that text came from a fixed 35 columns that missed the hint's brackets, counters longer than 7 characters and clocks past 9:59, so the line could overflow by a column or more and wrap, leaving stale lines on screen. Each part is now measured, one column kept spare, and cut text ends with an ellipsis.

The monitor read the terminal width with tput inside its background
subshell, where stdout is the substitution's pipe and stdin is
/dev/null, so it always got 80: on a wider terminal the text next to
the progress bar was cut as if the terminal were 80 columns wide.
tput now reads /dev/tty.

The space left for that text came from a fixed 35 columns that missed
the hint's brackets, counters longer than 7 characters and clocks past
9:59, so the line could overflow by a column or more and wrap, leaving
stale lines on screen. Each part is now measured, one column kept
spare, and cut text ends with an ellipsis.
@MasterCruelty MasterCruelty added bug Something isn't working Fix Fixed something labels Oct 22, 2026
@archetipico
archetipico merged commit fd25346 into main Oct 22, 2026
2 checks passed
@archetipico
archetipico deleted the fix_monitor_width branch October 22, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Fix Fixed something

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants