Skip to content

fix(tui): avoid OSC52 success on XTerminal#192

Closed
chaochaoweb3 wants to merge 8 commits into
XiaomiMiMo:mainfrom
chaochaoweb3:fix/clipboard-xterminal-origin
Closed

fix(tui): avoid OSC52 success on XTerminal#192
chaochaoweb3 wants to merge 8 commits into
XiaomiMiMo:mainfrom
chaochaoweb3:fix/clipboard-xterminal-origin

Conversation

@chaochaoweb3

Copy link
Copy Markdown

Summary

  • Skip OSC 52 clipboard writes when running in XTerminal
  • Preserve existing optimistic behavior for terminals where OSC 52 was attempted
  • Let fallback clipboard failures surface when OSC 52 was not attempted, so the TUI shows the existing failure toast instead of a false success

Fixes #188.

Verification

  • git diff --check
  • Attempted module import with local Bun; blocked by incomplete local dependency install (isexe missing from which) in this checkout

@qiaozongming

Copy link
Copy Markdown
Collaborator

#957

@qiaozongming

Copy link
Copy Markdown
Collaborator

#1104

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.

鼠标选中文本提示已复制,但 XTerminal 不支持 OSC 52 导致剪切板为空

5 participants