Skip to content

Sequence passthrough #846

Description

@disarmer

Hi!
I'm using tmux 2.3 locally as terminal tabs and same version remotely (nested tmux via ssh) on archlinux and ubuntu hosts. It's works perfectly, but i have problem with terminal sequence passthrough.

In plain terminal this sequence works (it's urxvt notification):
printf %b '\033]777;notify;test;test\007\007'

In one tmux passthrought sequence works too:
printf %b '\033Ptmux;\033' '\033]777;notify;test;test\007\007' '\033\\'

By my assumption, double sequence should work in nested tmux, but it doesn't (i'm getting freezed pane instead, until i'll close connection):
printf %b '\033Ptmux;\033' '\033Ptmux;\033' '\033]777;notify;test;test\007\007' '\033\\' '\033\\'
It there any way to pass sequence through two tmux?

========
TERM=tmux-256color inside, and TERM=rxvt-unicode-256color outside
% uname -sp && tmux -V && echo $TERM
Linux unknown
tmux 2.3
tmux-256color

Activity

  1. nicm commented on Apr 3, 2017

    @nicm
    Member

    I don't think you are escaping \033 and \ enough times in the second case.

    \033]777;notify;test;test\007\007
    \033Ptmux;\033\033]777;notify;test;test\007\007\033\
    \033Ptmux;\033\033Ptmux\033\033\033\033]777;notify;test;test\007\007\033\033\\\033\

  2. disarmer commented on Apr 3, 2017

    @disarmer
    Author

    Hm, last command still doesn't work, but not freezing terminal, just prints nothing.

    If i start tmux server with -vvvvvv, running second sequence, i get this output in log:

    1491259766.123269 input_parse: %0 ground, 34 bytes: \033Ptmux;\033\033]777;notify;test;test\a\a\033\\
    1491259766.123280 input_dcs_dispatch: "tmux;\033]777;notify;test;test\a\a"
    

    Looks fine, notification working.

    Then i'll start nested tmux, run third sequence and get this in external tmux log:

    1491260284.622434 input_parse: %0 ground, 50 bytes: \033Ptmux\033\033]777;notify;test;test\a\a\033\\\033[1;1H\033[1;49r\033[2B
    1491260284.622452 input_dcs_dispatch: "tmux\033]777;notify;test;test\a\a"
    

    Almost same, but notification not working.

  3. nicm commented on Apr 4, 2017

    @nicm
    Member
  4. disarmer commented on Apr 4, 2017

    @disarmer
    Author

    Yes, i tried with just one window in external and one window in nested tmux, so both are active

  5. nicm commented on Apr 4, 2017

    @nicm
    Member
  6. disarmer commented on Apr 4, 2017

    @disarmer
    Author

    Done:
    outer tmux: https://dpaste.de/iLLG
    inner tmux: https://dpaste.de/TuHL

  7. nicm commented on Apr 4, 2017

    @nicm
    Member
  8. disarmer commented on Apr 4, 2017

    @disarmer
    Author

    Ah, yes, it's working with semicolon:
    printf %b '\033Ptmux;\033\033Ptmux;\033\033\033\033]777;notify;test;test\007\007\033\033\\\033\'
    Thank you a lot!

  9. wilhelmy commented on Oct 11, 2018

    @wilhelmy

    Where can I find documentation about this \033P escape sequence?

  10. lock commented on Feb 15, 2020

    @lock

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

  11. locked and limited conversation to collaborators on Feb 15, 2020
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