mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #687] fix(core): treat 0 tty cols/rows as invalid #1496
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1496
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/687
Author: @remorses
Created: 2/14/2026
Status: 🔄 Open
Base:
main← Head:fix-bun-compiled-tty-dimensions📝 Commits (6)
a85f626fix(core): treat 0 tty cols/rows as invalidda20fb7fix(core): also guard SIGWINCH handler against 0 cols/rows3f776b3style: fix prettier line length1d2e207fix(core): add 80x24 ultimate fallback if width/height params are also 03fb1faaMerge branch 'main' into fix-bun-compiled-tty-dimensionsc35529dMerge branch 'main' into fix-bun-compiled-tty-dimensions📊 Changes
1 file changed (+10 additions, -4 deletions)
View changed files
📝
packages/core/src/renderer.ts(+10 -4)📄 Description
TTY streams can report terminal
columns/rowsas 0 even whileisTTYis true.CliRenderer currently uses nullish fallback (
??) when assigning terminal dimensions, which preserves the invalid 0 values and can cascade into invalid buffer dimensions.This change treats non-positive values as invalid and falls back to the renderer’s initial dimensions. No behavior change when columns/rows are already sane (> 0).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.