Skip to content

ANSI Escape sequences filtered, any reason for that? #2254

Closed

Description

@zokrezyl

Issue description

Tmux is filtering unknown escape sequences and that is making it unusable for the following purpose:

I was intending to use tmux on top of a new opengl terminal https://github.com/zokrezyl/asciterm . Asciterm is using libvterm for rendering text, but also is randering OpenGL shaders received as ANSI escape sequences.

My question is:

  • is there any trick to disable this filtering, and let tmux pass them to the underlying terminal or
  • would a patch that modifies the behavior be accepted

Required information

platform: Linux x86_64
tmux: 3.0a

Activity

  1. nicm commented on Jun 2, 2020

    @nicm
    Member

    You can use the DCS passthrough sequence to pass stuff, for example:

    printf "\033Ptmux;abcdef\033\\"
    

    You need to double any \033 in the sequence you want to pass.

  2. zokrezyl commented on Jun 2, 2020

    @zokrezyl
    Author

    Thanks for the quick answer. So the idea is in case environment variable TERM=tmux is defined, to send DCS pass through. Will test it and report back.

  3. nicm commented on Jun 2, 2020

    @nicm
    Member

    Better to check for TMUX than TERM.

  4. zokrezyl commented on Jun 2, 2020

    @zokrezyl
    Author

    Thanks for the advice. Can confirm the DSC pass through worked. Though I just bumped in other limitations I did not think about in my current design.

  5. github-actions commented on Jun 10, 2021

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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