Skip to content

feat: Allow setting rows/cols for dimensions instead of just pixels#763

Open
DaltonSW wants to merge 4 commits into
charmbracelet:mainfrom
DaltonSW:feat/rows-cols
Open

feat: Allow setting rows/cols for dimensions instead of just pixels#763
DaltonSW wants to merge 4 commits into
charmbracelet:mainfrom
DaltonSW:feat/rows-cols

Conversation

@DaltonSW

Copy link
Copy Markdown
Contributor

Adds Set Rows/Set Columns commands to size the terminal in character
cells instead of pixels. The pixel size is derived by probing the live
xterm.js terminal's own fit/measurement APIs and iterating to an exact
match, so it stays correct across font/theme changes without depending
on any of xterm.js's private internals.

  • I have read CONTRIBUTING.md.
  • I have created a discussion that was approved by a maintainer (for new features). (I got Discord approval, if that counts)

@meowgorithm

Copy link
Copy Markdown
Member

@DaltonSW mind fixing the build errors?

DaltonSW added 2 commits July 12, 2026 09:58
Adds `Set Rows`/`Set Columns` commands to size the terminal in character
cells instead of pixels. The pixel size is derived by probing the live
xterm.js terminal's own fit/measurement APIs and iterating to an exact
match, so it stays correct across font/theme changes without depending
on any of xterm.js's private internals.
Adds demo tapes for Set Rows and Set Columns (individually and
combined) and documents them in examples/settings/README.md,
matching the existing width/height example pattern.
@DaltonSW

Copy link
Copy Markdown
Contributor Author

@meowgorithm Done! I think I misunderstood LFS stuff. 😅

Did you want me to clean up any of the govulncheck or golint stuff?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants