It works now with
tmux new-window "sleep 1 &&  printf
'\033Ptmux;\033\033]50;ColorScheme=%s\007\033\\' $1 "

Thanks


2017-03-24 7:50 GMT+01:00 Franky Spamschleuder <
[email protected]>:

> Hi Nicholas,
>
> thanks for your answer. But your suggested solution does also not work.
> I played a little bit around and tried it also with run shell or wrapped
> the command inside a sh -c with no result.
>
> E.g.
> tmux new-window "printf '\033Ptmux;\033\033]50;ColorSc
> heme=Oxygen\007\033\\'"
> tmux new-window " /bin/sh -c \"printf 
> '\033Ptmux;\033\033]50;ColorScheme=Oxygen\007\033\\'\"
> "
> tmux run-shell "printf '\033Ptmux;\033\033]50;ColorSc
> heme=Oxygen\007\033\\'"
>
> Cheers
>
> Frank
>
> 2017-03-22 14:22 GMT+01:00 Nicholas Marriott <[email protected]>
> :
>
>> Hi
>>
>> run-shell does not have a terminal you can send these escape sequences
>> to, you will need to run it using split-window or new-window.
>>
>>
>> On Wed, Mar 22, 2017 at 02:20:55PM +0100, 'Franky Spamschleuder' via
>> tmux-users wrote:
>> >    Hi everybody,
>> >
>> >    I'm currently working on a script in which i can change my konsole
>> color
>> >    profile via tmux key binding. The printf statement does
>> unfortunatelly not
>> >    work inside the plugin script but exexution in an tmux shell does
>> work.
>> >    For example:A
>> >
>> >    printf '\ePtmux;\e\e]50;ColorScheme=Oxygen%s\a\e\'A
>> >
>> >    In the plugin I tried this statement as it is or wrapped it inside a
>> tmux
>> >    run command, but both does not work.A
>> >
>> >    So anybody can help me?
>> >
>> >    Cheers
>> >
>> >    Frank
>> >
>> >    --
>> >    You received this message because you are subscribed to the Google
>> Groups
>> >    "tmux-users" group.
>> >    To unsubscribe from this group and stop receiving emails from it,
>> send an
>> >    email to [email protected].
>> >    To post to this group, send email to [email protected].
>> >    For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to