This commit is contained in:
David Schroeder
2026-09-23 17:02:08 -05:00
parent fdbd08e1b0
commit cd4d505064
5 changed files with 25 additions and 26 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ class ReportDisplay:
self.stream = stream if stream is not None else sys.stdout
self.color = (self.stream.isatty() and os.environ.get('TERM', 'dumb') != 'dumb'
and 'NO_COLOR' not in os.environ)
self.width = max(20, min(100, shutil.get_terminal_size((80, 24)).columns))
self.width = max(20, min(75, shutil.get_terminal_size((80, 24)).columns))
def line(self, text='', style='', indent=0):
codes = {'bold': '1', 'muted': '90', 'accent': '96',
+1 -1
View File
@@ -15,7 +15,7 @@ TAPM_UI_INIT() {
TAPM_UI_WIDTH="$(tput cols 2>/dev/null)" || TAPM_UI_WIDTH="${COLUMNS:-80}"
fi
[[ "$TAPM_UI_WIDTH" =~ ^[0-9]+$ ]] || TAPM_UI_WIDTH=80
(( TAPM_UI_WIDTH > 100 )) && TAPM_UI_WIDTH=100
(( TAPM_UI_WIDTH > 75 )) && TAPM_UI_WIDTH=75
(( TAPM_UI_WIDTH < 20 )) && TAPM_UI_WIDTH=20
return 0
}