Commit e420791
Fix: handle OSError from os.get_terminal_size() in CLI table rendering for non-TTY environments (#2599)
* Fix: handle OSError from os.get_terminal_size() in CLI table rendering
* Refactor: use shutil.get_terminal_size(fallback=(120, 40)) for safer terminal width detection
---------
Co-authored-by: David Ruwodo <david.ruwodo@bcbmedical.com>1 parent 1d15bfb commit e420791
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments