Commit aa9866f
committed
Fix terminal size query in test environments
Make terminal size query graceful for test environments where
TestBackend doesn't support querying terminal size. Falls back to
a reasonable default height of 24 lines when size() returns an error.
This fixes CI test failures while maintaining runtime behavior.1 parent 26082d5 commit aa9866f
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
| 494 | + | |
| 495 | + | |
499 | 496 | | |
500 | 497 | | |
501 | | - | |
502 | | - | |
| 498 | + | |
| 499 | + | |
503 | 500 | | |
504 | 501 | | |
505 | 502 | | |
| |||
0 commit comments