mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #415] [MERGED] fix(core): wrap kitty graphics query in tmux DCS passthrough #1301
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#1301
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/415
Author: @edlsh
Created: 12/13/2025
Status: ✅ Merged
Merged: 1/12/2026
Merged by: @kommander
Base:
main← Head:fix/tmux-kitty-graphics-334📝 Commits (10+)
c3b22bdfix(core): wrap kitty graphics query in tmux DCS passthrough933f322fix(core): defer kitty graphics query until detection4a9aa5emove test script to core/dev84c70a8Merge branch 'main' into fix/tmux-kitty-graphics-334a107718Merge branch 'main' into fix/tmux-kitty-graphics-334e32902eMerge branch 'main' into fix/tmux-kitty-graphics-334595ebadwrap all408a6c7stasha8fe7d2stashe15ff5aMerge live/main into fix/tmux-kitty-graphics-334📊 Changes
7 files changed (+405 additions, -24 deletions)
View changed files
➕
packages/core/dev/test-tmux-graphics-334.sh(+68 -0)📝
packages/core/docs/env-vars.md(+14 -0)📝
packages/core/src/zig.ts(+6 -0)📝
packages/core/src/zig/ansi.zig(+29 -0)📝
packages/core/src/zig/renderer.zig(+4 -0)📝
packages/core/src/zig/terminal.zig(+66 -24)📝
packages/core/src/zig/tests/terminal_test.zig(+218 -0)📄 Description
Fixes #334
Summary
TMUXenv var is presentTERM=screen*/tmux*withoutTMUX(could be GNU Screen)OPENTUI_NO_GRAPHICSenv var to disable query manuallyTechnical Details
The kitty graphics protocol uses APC sequences (
\x1b_G...) which tmux intercepts and leaks into pane titles. The fix wraps the query in tmux's DCS passthrough format (\x1bPtmux;...\x1b\\) with ESC chars doubled per the protocol spec.References:
Testing
Manual verification in tmux - pane title no longer shows
Gi=31337...🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.