Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks when run in tmux with run-shell command #23

Open
varac opened this issue Jun 20, 2018 · 3 comments
Open

Breaks when run in tmux with run-shell command #23

varac opened this issue Jun 20, 2018 · 3 comments

Comments

@varac
Copy link

varac commented Jun 20, 2018

In a tmux session I can run commands in the background of an active pane using the run-shell tmux command.

i.e.

:run-shell "echo hi"

outputs hi correctly.

When running ~/.dynamic-colors/bin/dynamic-colors switch solarized-dark in a tmux shell, it works fine as well.

However, when you don't have an interactive command prompt in a tmux session (i.e. when you run a long-running command like irssi in tmux) you need to use the run-shell tmux command.

But using run-shell breaks dynamic-colors. When I run the tmux command:

:run-shell "~/.dynamic-colors/bin/dynamic-colors switch solarized-dark"

I get this output in tmux:

Ptmux;]11;#002b36\Ptmux;]10;#839496\Ptmux;]12;#93a1a1\Ptmux;]14;#073642\Ptmux;]13;#93a1a1\Ptmux;]17;#073642\Ptmux;]708;#002b36\Ptmux;]4;0;#073642\Ptmux;]4;1;#dc322f[0/0]
x;]4;2;#859900\Ptmux;]4;3;#b58900\Ptmux;]4;4;#268bd2\Ptmux;]4;5;#d33682\Ptmux;]4;6;#2aa198\Ptmux;]4;7;#eee8d5\Ptmux;]4;8;#002b36\Ptmux;]4;9;#cb4b16\Ptmux;]4;10;#586e75\P
tmux;]4;11;#657b83\Ptmux;]4;12;#839496\Ptmux;]4;13;#6c71c4\Ptmux;]4;14;#93a1a1\Ptmux;]4;15;#fdf6e3\
@varac varac changed the title Break when run in tmux with run-shell command Breaks when run in tmux with run-shell command Jun 20, 2018
@varac
Copy link
Author

varac commented Jun 20, 2018

Btw, this happens regardless of my termial, I tried with termite, xterm and urxvt, all produce the same issue.

@RobSis
Copy link

RobSis commented Mar 12, 2020

There is no workaround for run-shell, because tmux discards any escape characters in it (as well as most other control characters). Source

@gszr
Copy link

gszr commented Feb 27, 2024

Could you test #29?

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

No branches or pull requests

3 participants