Skip to content

Copying in the CLI app broken under GNU screen #26491

Closed

Description

@valdemardi

Description

When trying to copy text under GNU screen, instead of the text ending up in the clipboard, the base64 encoded selection gets printed to the terminal. This seems to be caused by opencode using tmux OSC52 passthrough even when STY is set. STY indicates GNU screen, which requires ESC P ESC ] 52 ; c ; ... BEL ESC \ instead of ESC P tmux; ESC ESC ] 52 ; c ; ... BEL ESC \.

Plugins

No response

OpenCode version

At least current dev head b2badd.

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on May 9, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. valdemardi commented on May 16, 2026

    @valdemardi
    Author

    Any chance of getting this fixed? If not, I'll close the pr and this issue and move from using screen to tmux instead.

  3. valdemardi commented on May 16, 2026

    @valdemardi
    Author

    There's a ready-to-go fix in the linked pr for this real issue. Copy-paste can not currently work inside gnu screen.

    However, I see you have so many issues coming in that this one is probably just noise, so I'll close this for now.

    Anyway, please keep up the good work of managing the project.

    Cheers

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions