Skip to content

feat: add devicePixelRatio option to Terminal#3

Merged
bilby91 merged 1 commit into
mainfrom
feat/devicepixelratio-option
May 29, 2026
Merged

feat: add devicePixelRatio option to Terminal#3
bilby91 merged 1 commit into
mainfrom
feat/devicepixelratio-option

Conversation

@bilby91

@bilby91 bilby91 commented May 29, 2026

Copy link
Copy Markdown
Member

Forwards a devicePixelRatio option from Terminal through to the CanvasRenderer (which already supports it). Lets consumers pin an integer DPR via config instead of reaching into (term as any).renderer and mutating it after construction.

Backward compatible: when omitted, the renderer falls back to window.devicePixelRatio as before.

🤖 Generated with Claude Code

CanvasRenderer already accepts devicePixelRatio, but Terminal didn't forward
it — forcing consumers to reach into (term as any).renderer and mutate it
post-construction to pin an integer DPR on fractional-DPR displays. Expose it
as a first-class Terminal option that flows through to the renderer.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bilby91 bilby91 merged commit 44e592c into main May 29, 2026
5 checks passed
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.

1 participant