mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #367] [MERGED] feat(core): emit capabilities event on terminal capability response #1263
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#1263
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/367
Author: @melMass
Created: 11/30/2025
Status: ✅ Merged
Merged: 11/30/2025
Merged by: @kommander
Base:
main← Head:feat-emit-caps📝 Commits (6)
1d636f4feat(core): emit capabilities event on terminal capability response2f26c16test: 🚨 add renderer capabilities event test for kitty terminalbb74e94chore: format6c908d2Merge branch 'main' into feat-emit-caps5dccdb9test: use public stdin API instead of private property4b4ff16Merge branch 'main' into feat-emit-caps📊 Changes
2 files changed (+65 additions, -0 deletions)
View changed files
📝
packages/core/src/lib/terminal-capability-detection.test.ts(+64 -0)📝
packages/core/src/renderer.ts(+1 -0)📄 Description
As far as I can tell the only way to get the end of the detections sequence:
\x1b[?1016;2$y- sgr_pixels\x1b[?2027;0$y- unicode query\x1b[?2031;2$y- color_scheme_updates\x1b[?1004;2$y- focus_tracking\x1b[?2004;2$y- bracketed_paste\x1b[?2026;2$y- sync\x1b[1;2R- explicit_width (CPR)\x1b[1;3R- scaled_text (CPR)\x1bP>|kitty(0.42.2)\x1b\\- xtversion\x1b[?0u- kitty keyboardIs by using a timeout or similar, this just adds an event you can subscribe too. At my app layer I count it and settle at 10 but I'm not sure of all the implications in adding that to core but it could be a nice addition too like
capabilities:ready🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.