diff --git a/functions/base16-3024.fish b/functions/base16-3024.fish index 71a8aa6..772190e 100644 --- a/functions/base16-3024.fish +++ b/functions/base16-3024.fish @@ -31,22 +31,22 @@ function base16-3024 -d "3024" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-apathy.fish b/functions/base16-apathy.fish index 303d553..1c41a90 100644 --- a/functions/base16-apathy.fish +++ b/functions/base16-apathy.fish @@ -31,22 +31,22 @@ function base16-apathy -d "Apathy" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-ashes.fish b/functions/base16-ashes.fish index 08a89b0..b2d4a8f 100644 --- a/functions/base16-ashes.fish +++ b/functions/base16-ashes.fish @@ -31,22 +31,22 @@ function base16-ashes -d "Ashes" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-cave-light.fish b/functions/base16-atelier-cave-light.fish index 898711d..37aafc7 100644 --- a/functions/base16-atelier-cave-light.fish +++ b/functions/base16-atelier-cave-light.fish @@ -31,22 +31,22 @@ function base16-atelier-cave-light -d "Atelier Cave Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-cave.fish b/functions/base16-atelier-cave.fish index afc8ae8..84a2597 100644 --- a/functions/base16-atelier-cave.fish +++ b/functions/base16-atelier-cave.fish @@ -31,22 +31,22 @@ function base16-atelier-cave -d "Atelier Cave" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-dune-light.fish b/functions/base16-atelier-dune-light.fish index c2f3786..d924998 100644 --- a/functions/base16-atelier-dune-light.fish +++ b/functions/base16-atelier-dune-light.fish @@ -31,22 +31,22 @@ function base16-atelier-dune-light -d "Atelier Dune Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-dune.fish b/functions/base16-atelier-dune.fish index 3f50499..f1f6405 100644 --- a/functions/base16-atelier-dune.fish +++ b/functions/base16-atelier-dune.fish @@ -31,22 +31,22 @@ function base16-atelier-dune -d "Atelier Dune" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-estuary-light.fish b/functions/base16-atelier-estuary-light.fish index 7bd50a9..17d6300 100644 --- a/functions/base16-atelier-estuary-light.fish +++ b/functions/base16-atelier-estuary-light.fish @@ -31,22 +31,22 @@ function base16-atelier-estuary-light -d "Atelier Estuary Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-estuary.fish b/functions/base16-atelier-estuary.fish index 9673c0a..ec84770 100644 --- a/functions/base16-atelier-estuary.fish +++ b/functions/base16-atelier-estuary.fish @@ -31,22 +31,22 @@ function base16-atelier-estuary -d "Atelier Estuary" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-forest-light.fish b/functions/base16-atelier-forest-light.fish index 73666ba..cb1219d 100644 --- a/functions/base16-atelier-forest-light.fish +++ b/functions/base16-atelier-forest-light.fish @@ -31,22 +31,22 @@ function base16-atelier-forest-light -d "Atelier Forest Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-forest.fish b/functions/base16-atelier-forest.fish index 02d3de7..c958c8b 100644 --- a/functions/base16-atelier-forest.fish +++ b/functions/base16-atelier-forest.fish @@ -31,22 +31,22 @@ function base16-atelier-forest -d "Atelier Forest" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-heath-light.fish b/functions/base16-atelier-heath-light.fish index 8668f8a..e656419 100644 --- a/functions/base16-atelier-heath-light.fish +++ b/functions/base16-atelier-heath-light.fish @@ -31,22 +31,22 @@ function base16-atelier-heath-light -d "Atelier Heath Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-heath.fish b/functions/base16-atelier-heath.fish index 3bc5bbf..5b60d33 100644 --- a/functions/base16-atelier-heath.fish +++ b/functions/base16-atelier-heath.fish @@ -31,22 +31,22 @@ function base16-atelier-heath -d "Atelier Heath" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-lakeside-light.fish b/functions/base16-atelier-lakeside-light.fish index e7205c7..fb79ef2 100644 --- a/functions/base16-atelier-lakeside-light.fish +++ b/functions/base16-atelier-lakeside-light.fish @@ -31,22 +31,22 @@ function base16-atelier-lakeside-light -d "Atelier Lakeside Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-lakeside.fish b/functions/base16-atelier-lakeside.fish index 0f56998..485243e 100644 --- a/functions/base16-atelier-lakeside.fish +++ b/functions/base16-atelier-lakeside.fish @@ -31,22 +31,22 @@ function base16-atelier-lakeside -d "Atelier Lakeside" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-plateau-light.fish b/functions/base16-atelier-plateau-light.fish index ae11a18..b543bfe 100644 --- a/functions/base16-atelier-plateau-light.fish +++ b/functions/base16-atelier-plateau-light.fish @@ -31,22 +31,22 @@ function base16-atelier-plateau-light -d "Atelier Plateau Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-plateau.fish b/functions/base16-atelier-plateau.fish index 9d8a623..999b4f4 100644 --- a/functions/base16-atelier-plateau.fish +++ b/functions/base16-atelier-plateau.fish @@ -31,22 +31,22 @@ function base16-atelier-plateau -d "Atelier Plateau" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-savanna-light.fish b/functions/base16-atelier-savanna-light.fish index 7e569b6..42b17d5 100644 --- a/functions/base16-atelier-savanna-light.fish +++ b/functions/base16-atelier-savanna-light.fish @@ -31,22 +31,22 @@ function base16-atelier-savanna-light -d "Atelier Savanna Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-savanna.fish b/functions/base16-atelier-savanna.fish index ab9e383..9e37b31 100644 --- a/functions/base16-atelier-savanna.fish +++ b/functions/base16-atelier-savanna.fish @@ -31,22 +31,22 @@ function base16-atelier-savanna -d "Atelier Savanna" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-seaside-light.fish b/functions/base16-atelier-seaside-light.fish index 3965655..7f734e3 100644 --- a/functions/base16-atelier-seaside-light.fish +++ b/functions/base16-atelier-seaside-light.fish @@ -31,22 +31,22 @@ function base16-atelier-seaside-light -d "Atelier Seaside Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-seaside.fish b/functions/base16-atelier-seaside.fish index 4ef955b..245ac9a 100644 --- a/functions/base16-atelier-seaside.fish +++ b/functions/base16-atelier-seaside.fish @@ -31,22 +31,22 @@ function base16-atelier-seaside -d "Atelier Seaside" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-sulphurpool-light.fish b/functions/base16-atelier-sulphurpool-light.fish index 4aa50f9..c44a53b 100644 --- a/functions/base16-atelier-sulphurpool-light.fish +++ b/functions/base16-atelier-sulphurpool-light.fish @@ -31,22 +31,22 @@ function base16-atelier-sulphurpool-light -d "Atelier Sulphurpool Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atelier-sulphurpool.fish b/functions/base16-atelier-sulphurpool.fish index d6d2080..839f71b 100644 --- a/functions/base16-atelier-sulphurpool.fish +++ b/functions/base16-atelier-sulphurpool.fish @@ -31,22 +31,22 @@ function base16-atelier-sulphurpool -d "Atelier Sulphurpool" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-atlas.fish b/functions/base16-atlas.fish index f8f1519..e771046 100644 --- a/functions/base16-atlas.fish +++ b/functions/base16-atlas.fish @@ -31,22 +31,22 @@ function base16-atlas -d "Atlas" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-bespin.fish b/functions/base16-bespin.fish index 591d60a..6b1ba93 100644 --- a/functions/base16-bespin.fish +++ b/functions/base16-bespin.fish @@ -31,22 +31,22 @@ function base16-bespin -d "Bespin" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-black-metal-bathory.fish b/functions/base16-black-metal-bathory.fish index 2e7b903..fe5b9f6 100644 --- a/functions/base16-black-metal-bathory.fish +++ b/functions/base16-black-metal-bathory.fish @@ -31,22 +31,22 @@ function base16-black-metal-bathory -d "Black Metal (Bathory)" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-black-metal-burzum.fish b/functions/base16-black-metal-burzum.fish index d6dad97..4be2c71 100644 --- a/functions/base16-black-metal-burzum.fish +++ b/functions/base16-black-metal-burzum.fish @@ -31,22 +31,22 @@ function base16-black-metal-burzum -d "Black Metal (Burzum)" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-black-metal-dark-funeral.fish b/functions/base16-black-metal-dark-funeral.fish index 5ea51e2..39481bf 100644 --- a/functions/base16-black-metal-dark-funeral.fish +++ b/functions/base16-black-metal-dark-funeral.fish @@ -31,22 +31,22 @@ function base16-black-metal-dark-funeral -d "Black Metal (Dark Funeral)" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-black-metal-gorgoroth.fish b/functions/base16-black-metal-gorgoroth.fish index f8d4633..972ac15 100644 --- a/functions/base16-black-metal-gorgoroth.fish +++ b/functions/base16-black-metal-gorgoroth.fish @@ -31,22 +31,22 @@ function base16-black-metal-gorgoroth -d "Black Metal (Gorgoroth)" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-black-metal-immortal.fish b/functions/base16-black-metal-immortal.fish index 487fb01..db53a2e 100644 --- a/functions/base16-black-metal-immortal.fish +++ b/functions/base16-black-metal-immortal.fish @@ -31,22 +31,22 @@ function base16-black-metal-immortal -d "Black Metal (Immortal)" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-black-metal-khold.fish b/functions/base16-black-metal-khold.fish index 80c1391..2562a1d 100644 --- a/functions/base16-black-metal-khold.fish +++ b/functions/base16-black-metal-khold.fish @@ -31,22 +31,22 @@ function base16-black-metal-khold -d "Black Metal (Khold)" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-black-metal-marduk.fish b/functions/base16-black-metal-marduk.fish index cd0f440..ced9710 100644 --- a/functions/base16-black-metal-marduk.fish +++ b/functions/base16-black-metal-marduk.fish @@ -31,22 +31,22 @@ function base16-black-metal-marduk -d "Black Metal (Marduk)" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-black-metal-mayhem.fish b/functions/base16-black-metal-mayhem.fish index 9a0ec59..31cd4a2 100644 --- a/functions/base16-black-metal-mayhem.fish +++ b/functions/base16-black-metal-mayhem.fish @@ -31,22 +31,22 @@ function base16-black-metal-mayhem -d "Black Metal (Mayhem)" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-black-metal-nile.fish b/functions/base16-black-metal-nile.fish index 061b07c..d92d77e 100644 --- a/functions/base16-black-metal-nile.fish +++ b/functions/base16-black-metal-nile.fish @@ -31,22 +31,22 @@ function base16-black-metal-nile -d "Black Metal (Nile)" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-black-metal-venom.fish b/functions/base16-black-metal-venom.fish index 7a43f75..40f2cbc 100644 --- a/functions/base16-black-metal-venom.fish +++ b/functions/base16-black-metal-venom.fish @@ -31,22 +31,22 @@ function base16-black-metal-venom -d "Black Metal (Venom)" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-black-metal.fish b/functions/base16-black-metal.fish index 439e447..e0bc17c 100644 --- a/functions/base16-black-metal.fish +++ b/functions/base16-black-metal.fish @@ -31,22 +31,22 @@ function base16-black-metal -d "Black Metal" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-brewer.fish b/functions/base16-brewer.fish index 79ef51c..642e74a 100644 --- a/functions/base16-brewer.fish +++ b/functions/base16-brewer.fish @@ -31,22 +31,22 @@ function base16-brewer -d "Brewer" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-bright.fish b/functions/base16-bright.fish index cfd3d7d..b60de59 100644 --- a/functions/base16-bright.fish +++ b/functions/base16-bright.fish @@ -31,22 +31,22 @@ function base16-bright -d "Bright" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-brogrammer.fish b/functions/base16-brogrammer.fish index 1ad24a4..0cd7996 100644 --- a/functions/base16-brogrammer.fish +++ b/functions/base16-brogrammer.fish @@ -31,22 +31,22 @@ function base16-brogrammer -d "Brogrammer" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-brushtrees-dark.fish b/functions/base16-brushtrees-dark.fish index 8f20946..fdfdb44 100644 --- a/functions/base16-brushtrees-dark.fish +++ b/functions/base16-brushtrees-dark.fish @@ -31,22 +31,22 @@ function base16-brushtrees-dark -d "Brush Trees Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-brushtrees.fish b/functions/base16-brushtrees.fish index 05e008f..b774256 100644 --- a/functions/base16-brushtrees.fish +++ b/functions/base16-brushtrees.fish @@ -31,22 +31,22 @@ function base16-brushtrees -d "Brush Trees" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-chalk.fish b/functions/base16-chalk.fish index e3e362b..06fa255 100644 --- a/functions/base16-chalk.fish +++ b/functions/base16-chalk.fish @@ -31,22 +31,22 @@ function base16-chalk -d "Chalk" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-circus.fish b/functions/base16-circus.fish index a8e2725..955b042 100644 --- a/functions/base16-circus.fish +++ b/functions/base16-circus.fish @@ -31,22 +31,22 @@ function base16-circus -d "Circus" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-classic-dark.fish b/functions/base16-classic-dark.fish index 9703578..c1ced8a 100644 --- a/functions/base16-classic-dark.fish +++ b/functions/base16-classic-dark.fish @@ -31,22 +31,22 @@ function base16-classic-dark -d "Classic Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-classic-light.fish b/functions/base16-classic-light.fish index a416163..d5fd2e5 100644 --- a/functions/base16-classic-light.fish +++ b/functions/base16-classic-light.fish @@ -31,22 +31,22 @@ function base16-classic-light -d "Classic Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-codeschool.fish b/functions/base16-codeschool.fish index a7d78f1..432f20a 100644 --- a/functions/base16-codeschool.fish +++ b/functions/base16-codeschool.fish @@ -31,22 +31,22 @@ function base16-codeschool -d "Codeschool" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-cupcake.fish b/functions/base16-cupcake.fish index 6469536..93a9a55 100644 --- a/functions/base16-cupcake.fish +++ b/functions/base16-cupcake.fish @@ -31,22 +31,22 @@ function base16-cupcake -d "Cupcake" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-cupertino.fish b/functions/base16-cupertino.fish index 56e0bc9..9e47d43 100644 --- a/functions/base16-cupertino.fish +++ b/functions/base16-cupertino.fish @@ -31,22 +31,22 @@ function base16-cupertino -d "Cupertino" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-darktooth.fish b/functions/base16-darktooth.fish index b6c13d7..57609e9 100644 --- a/functions/base16-darktooth.fish +++ b/functions/base16-darktooth.fish @@ -31,22 +31,22 @@ function base16-darktooth -d "Darktooth" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-default-dark.fish b/functions/base16-default-dark.fish index 3edeafc..6932ab1 100644 --- a/functions/base16-default-dark.fish +++ b/functions/base16-default-dark.fish @@ -31,22 +31,22 @@ function base16-default-dark -d "Default Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-default-light.fish b/functions/base16-default-light.fish index 95548ed..699ccb7 100644 --- a/functions/base16-default-light.fish +++ b/functions/base16-default-light.fish @@ -31,22 +31,22 @@ function base16-default-light -d "Default Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-dracula.fish b/functions/base16-dracula.fish index b9b6e96..878ab8e 100644 --- a/functions/base16-dracula.fish +++ b/functions/base16-dracula.fish @@ -31,22 +31,22 @@ function base16-dracula -d "Dracula" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-eighties.fish b/functions/base16-eighties.fish index ec1f2b9..4cf2027 100644 --- a/functions/base16-eighties.fish +++ b/functions/base16-eighties.fish @@ -31,22 +31,22 @@ function base16-eighties -d "Eighties" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-embers.fish b/functions/base16-embers.fish index f080a5e..e23efb8 100644 --- a/functions/base16-embers.fish +++ b/functions/base16-embers.fish @@ -31,22 +31,22 @@ function base16-embers -d "Embers" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-flat.fish b/functions/base16-flat.fish index 123049c..5114b17 100644 --- a/functions/base16-flat.fish +++ b/functions/base16-flat.fish @@ -31,22 +31,22 @@ function base16-flat -d "Flat" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-framer.fish b/functions/base16-framer.fish index 2fd751e..d391861 100644 --- a/functions/base16-framer.fish +++ b/functions/base16-framer.fish @@ -31,22 +31,22 @@ function base16-framer -d "Framer" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-fruit-soda.fish b/functions/base16-fruit-soda.fish index e035396..4b0f6f7 100644 --- a/functions/base16-fruit-soda.fish +++ b/functions/base16-fruit-soda.fish @@ -31,22 +31,22 @@ function base16-fruit-soda -d "Fruit Soda" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-github.fish b/functions/base16-github.fish index 2753d05..c98ba7a 100644 --- a/functions/base16-github.fish +++ b/functions/base16-github.fish @@ -31,22 +31,22 @@ function base16-github -d "Github" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-google-dark.fish b/functions/base16-google-dark.fish index 41ede35..6438295 100644 --- a/functions/base16-google-dark.fish +++ b/functions/base16-google-dark.fish @@ -31,22 +31,22 @@ function base16-google-dark -d "Google Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-google-light.fish b/functions/base16-google-light.fish index 1aa1511..ec61191 100644 --- a/functions/base16-google-light.fish +++ b/functions/base16-google-light.fish @@ -31,22 +31,22 @@ function base16-google-light -d "Google Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-grayscale-dark.fish b/functions/base16-grayscale-dark.fish index e7eb52f..00c14d4 100644 --- a/functions/base16-grayscale-dark.fish +++ b/functions/base16-grayscale-dark.fish @@ -31,22 +31,22 @@ function base16-grayscale-dark -d "Grayscale Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-grayscale-light.fish b/functions/base16-grayscale-light.fish index ff6cf03..c3c9989 100644 --- a/functions/base16-grayscale-light.fish +++ b/functions/base16-grayscale-light.fish @@ -31,22 +31,22 @@ function base16-grayscale-light -d "Grayscale Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-greenscreen.fish b/functions/base16-greenscreen.fish index 68357d0..75da2ca 100644 --- a/functions/base16-greenscreen.fish +++ b/functions/base16-greenscreen.fish @@ -31,22 +31,22 @@ function base16-greenscreen -d "Green Screen" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-gruvbox-dark-hard.fish b/functions/base16-gruvbox-dark-hard.fish index 7c41602..b65d6c2 100644 --- a/functions/base16-gruvbox-dark-hard.fish +++ b/functions/base16-gruvbox-dark-hard.fish @@ -31,22 +31,22 @@ function base16-gruvbox-dark-hard -d "Gruvbox dark, hard" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-gruvbox-dark-medium.fish b/functions/base16-gruvbox-dark-medium.fish index 0b18c51..a1a8c80 100644 --- a/functions/base16-gruvbox-dark-medium.fish +++ b/functions/base16-gruvbox-dark-medium.fish @@ -31,22 +31,22 @@ function base16-gruvbox-dark-medium -d "Gruvbox dark, medium" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-gruvbox-dark-pale.fish b/functions/base16-gruvbox-dark-pale.fish index 03861ca..15fdc78 100644 --- a/functions/base16-gruvbox-dark-pale.fish +++ b/functions/base16-gruvbox-dark-pale.fish @@ -31,22 +31,22 @@ function base16-gruvbox-dark-pale -d "Gruvbox dark, pale" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-gruvbox-dark-soft.fish b/functions/base16-gruvbox-dark-soft.fish index f271ff7..8b09e83 100644 --- a/functions/base16-gruvbox-dark-soft.fish +++ b/functions/base16-gruvbox-dark-soft.fish @@ -31,22 +31,22 @@ function base16-gruvbox-dark-soft -d "Gruvbox dark, soft" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-gruvbox-light-hard.fish b/functions/base16-gruvbox-light-hard.fish index 3f26605..1ef5c52 100644 --- a/functions/base16-gruvbox-light-hard.fish +++ b/functions/base16-gruvbox-light-hard.fish @@ -31,22 +31,22 @@ function base16-gruvbox-light-hard -d "Gruvbox light, hard" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-gruvbox-light-medium.fish b/functions/base16-gruvbox-light-medium.fish index 8ee0d66..35b4ef2 100644 --- a/functions/base16-gruvbox-light-medium.fish +++ b/functions/base16-gruvbox-light-medium.fish @@ -31,22 +31,22 @@ function base16-gruvbox-light-medium -d "Gruvbox light, medium" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-gruvbox-light-soft.fish b/functions/base16-gruvbox-light-soft.fish index 7680a63..3cd72c5 100644 --- a/functions/base16-gruvbox-light-soft.fish +++ b/functions/base16-gruvbox-light-soft.fish @@ -31,22 +31,22 @@ function base16-gruvbox-light-soft -d "Gruvbox light, soft" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-harmonic-dark.fish b/functions/base16-harmonic-dark.fish index c03bb6f..87d5040 100644 --- a/functions/base16-harmonic-dark.fish +++ b/functions/base16-harmonic-dark.fish @@ -31,22 +31,22 @@ function base16-harmonic-dark -d "Harmonic16 Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-harmonic-light.fish b/functions/base16-harmonic-light.fish index f2e42d1..7a54208 100644 --- a/functions/base16-harmonic-light.fish +++ b/functions/base16-harmonic-light.fish @@ -31,22 +31,22 @@ function base16-harmonic-light -d "Harmonic16 Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-heetch-light.fish b/functions/base16-heetch-light.fish index 5fbf704..05d4500 100644 --- a/functions/base16-heetch-light.fish +++ b/functions/base16-heetch-light.fish @@ -31,22 +31,22 @@ function base16-heetch-light -d "Heetch Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-heetch.fish b/functions/base16-heetch.fish index 6086f16..a5bcfba 100644 --- a/functions/base16-heetch.fish +++ b/functions/base16-heetch.fish @@ -31,22 +31,22 @@ function base16-heetch -d "Heetch Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-helios.fish b/functions/base16-helios.fish index 1f1d18d..f4d451b 100644 --- a/functions/base16-helios.fish +++ b/functions/base16-helios.fish @@ -31,22 +31,22 @@ function base16-helios -d "Helios" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-hopscotch.fish b/functions/base16-hopscotch.fish index dfe89df..6ac8150 100644 --- a/functions/base16-hopscotch.fish +++ b/functions/base16-hopscotch.fish @@ -31,22 +31,22 @@ function base16-hopscotch -d "Hopscotch" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-horizon-dark.fish b/functions/base16-horizon-dark.fish index 776f9fc..1094136 100644 --- a/functions/base16-horizon-dark.fish +++ b/functions/base16-horizon-dark.fish @@ -31,22 +31,22 @@ function base16-horizon-dark -d "Horizon Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-horizon-light.fish b/functions/base16-horizon-light.fish index 6fa863f..c078688 100644 --- a/functions/base16-horizon-light.fish +++ b/functions/base16-horizon-light.fish @@ -31,22 +31,22 @@ function base16-horizon-light -d "Horizon Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-horizon-terminal-dark.fish b/functions/base16-horizon-terminal-dark.fish index 0221723..5aa5013 100644 --- a/functions/base16-horizon-terminal-dark.fish +++ b/functions/base16-horizon-terminal-dark.fish @@ -31,22 +31,22 @@ function base16-horizon-terminal-dark -d "Horizon Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-horizon-terminal-light.fish b/functions/base16-horizon-terminal-light.fish index 59db311..acbdba0 100644 --- a/functions/base16-horizon-terminal-light.fish +++ b/functions/base16-horizon-terminal-light.fish @@ -31,22 +31,22 @@ function base16-horizon-terminal-light -d "Horizon Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-ia-dark.fish b/functions/base16-ia-dark.fish index 07c83e6..87e29f5 100644 --- a/functions/base16-ia-dark.fish +++ b/functions/base16-ia-dark.fish @@ -31,22 +31,22 @@ function base16-ia-dark -d "iA Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-ia-light.fish b/functions/base16-ia-light.fish index af25df6..bcc749d 100644 --- a/functions/base16-ia-light.fish +++ b/functions/base16-ia-light.fish @@ -31,22 +31,22 @@ function base16-ia-light -d "iA Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-icy.fish b/functions/base16-icy.fish index 529f7b5..ce61549 100644 --- a/functions/base16-icy.fish +++ b/functions/base16-icy.fish @@ -31,22 +31,22 @@ function base16-icy -d "Icy Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-irblack.fish b/functions/base16-irblack.fish index 83dc128..c048335 100644 --- a/functions/base16-irblack.fish +++ b/functions/base16-irblack.fish @@ -31,22 +31,22 @@ function base16-irblack -d "IR Black" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-isotope.fish b/functions/base16-isotope.fish index a22bd49..72d7919 100644 --- a/functions/base16-isotope.fish +++ b/functions/base16-isotope.fish @@ -31,22 +31,22 @@ function base16-isotope -d "Isotope" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-macintosh.fish b/functions/base16-macintosh.fish index f76cc39..80666a8 100644 --- a/functions/base16-macintosh.fish +++ b/functions/base16-macintosh.fish @@ -31,22 +31,22 @@ function base16-macintosh -d "Macintosh" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-marrakesh.fish b/functions/base16-marrakesh.fish index 39e9218..14b9085 100644 --- a/functions/base16-marrakesh.fish +++ b/functions/base16-marrakesh.fish @@ -31,22 +31,22 @@ function base16-marrakesh -d "Marrakesh" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-materia.fish b/functions/base16-materia.fish index 02eb050..45455df 100644 --- a/functions/base16-materia.fish +++ b/functions/base16-materia.fish @@ -31,22 +31,22 @@ function base16-materia -d "Materia" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-material-darker.fish b/functions/base16-material-darker.fish index 3180c25..646faae 100644 --- a/functions/base16-material-darker.fish +++ b/functions/base16-material-darker.fish @@ -31,22 +31,22 @@ function base16-material-darker -d "Material Darker" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-material-lighter.fish b/functions/base16-material-lighter.fish index 4bd3432..2dccc38 100644 --- a/functions/base16-material-lighter.fish +++ b/functions/base16-material-lighter.fish @@ -31,22 +31,22 @@ function base16-material-lighter -d "Material Lighter" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-material-palenight.fish b/functions/base16-material-palenight.fish index ce47c98..488396d 100644 --- a/functions/base16-material-palenight.fish +++ b/functions/base16-material-palenight.fish @@ -31,22 +31,22 @@ function base16-material-palenight -d "Material Palenight" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-material-vivid.fish b/functions/base16-material-vivid.fish index 7a4d812..40cc0f6 100644 --- a/functions/base16-material-vivid.fish +++ b/functions/base16-material-vivid.fish @@ -31,22 +31,22 @@ function base16-material-vivid -d "Material Vivid" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-material.fish b/functions/base16-material.fish index e2afd4d..c596118 100644 --- a/functions/base16-material.fish +++ b/functions/base16-material.fish @@ -31,22 +31,22 @@ function base16-material -d "Material" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-mellow-purple.fish b/functions/base16-mellow-purple.fish index 2977724..28ec61f 100644 --- a/functions/base16-mellow-purple.fish +++ b/functions/base16-mellow-purple.fish @@ -31,22 +31,22 @@ function base16-mellow-purple -d "Mellow Purple" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-mexico-light.fish b/functions/base16-mexico-light.fish index bbc0065..a292f38 100644 --- a/functions/base16-mexico-light.fish +++ b/functions/base16-mexico-light.fish @@ -31,22 +31,22 @@ function base16-mexico-light -d "Mexico Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-mocha.fish b/functions/base16-mocha.fish index 2a28858..391b228 100644 --- a/functions/base16-mocha.fish +++ b/functions/base16-mocha.fish @@ -31,22 +31,22 @@ function base16-mocha -d "Mocha" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-monokai.fish b/functions/base16-monokai.fish index a93bbd4..4a28dba 100644 --- a/functions/base16-monokai.fish +++ b/functions/base16-monokai.fish @@ -31,22 +31,22 @@ function base16-monokai -d "Monokai" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-nord.fish b/functions/base16-nord.fish index e21e7b8..6ac9e29 100644 --- a/functions/base16-nord.fish +++ b/functions/base16-nord.fish @@ -31,22 +31,22 @@ function base16-nord -d "Nord" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-ocean.fish b/functions/base16-ocean.fish index 1e55646..a193940 100644 --- a/functions/base16-ocean.fish +++ b/functions/base16-ocean.fish @@ -31,22 +31,22 @@ function base16-ocean -d "Ocean" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-oceanicnext.fish b/functions/base16-oceanicnext.fish index 3681616..8eed768 100644 --- a/functions/base16-oceanicnext.fish +++ b/functions/base16-oceanicnext.fish @@ -31,22 +31,22 @@ function base16-oceanicnext -d "OceanicNext" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-one-light.fish b/functions/base16-one-light.fish index 6415ef0..b1e74e2 100644 --- a/functions/base16-one-light.fish +++ b/functions/base16-one-light.fish @@ -31,22 +31,22 @@ function base16-one-light -d "One Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-onedark.fish b/functions/base16-onedark.fish index dfb6a41..dc74977 100644 --- a/functions/base16-onedark.fish +++ b/functions/base16-onedark.fish @@ -31,22 +31,22 @@ function base16-onedark -d "OneDark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-outrun-dark.fish b/functions/base16-outrun-dark.fish index ac4110b..27d7223 100644 --- a/functions/base16-outrun-dark.fish +++ b/functions/base16-outrun-dark.fish @@ -31,22 +31,22 @@ function base16-outrun-dark -d "Outrun Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-papercolor-dark.fish b/functions/base16-papercolor-dark.fish index 41bfd8c..a31d21f 100644 --- a/functions/base16-papercolor-dark.fish +++ b/functions/base16-papercolor-dark.fish @@ -31,22 +31,22 @@ function base16-papercolor-dark -d "PaperColor Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-papercolor-light.fish b/functions/base16-papercolor-light.fish index bb2a8d1..cb3c891 100644 --- a/functions/base16-papercolor-light.fish +++ b/functions/base16-papercolor-light.fish @@ -31,22 +31,22 @@ function base16-papercolor-light -d "PaperColor Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-paraiso.fish b/functions/base16-paraiso.fish index 42c4056..1181bc7 100644 --- a/functions/base16-paraiso.fish +++ b/functions/base16-paraiso.fish @@ -31,22 +31,22 @@ function base16-paraiso -d "Paraiso" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-phd.fish b/functions/base16-phd.fish index baab2cc..b6fe799 100644 --- a/functions/base16-phd.fish +++ b/functions/base16-phd.fish @@ -31,22 +31,22 @@ function base16-phd -d "PhD" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-pico.fish b/functions/base16-pico.fish index a6e20d3..9ad5688 100644 --- a/functions/base16-pico.fish +++ b/functions/base16-pico.fish @@ -31,22 +31,22 @@ function base16-pico -d "Pico" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-pop.fish b/functions/base16-pop.fish index 3fd5812..d4e3cef 100644 --- a/functions/base16-pop.fish +++ b/functions/base16-pop.fish @@ -31,22 +31,22 @@ function base16-pop -d "Pop" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-porple.fish b/functions/base16-porple.fish index df4da25..2599a1d 100644 --- a/functions/base16-porple.fish +++ b/functions/base16-porple.fish @@ -31,22 +31,22 @@ function base16-porple -d "Porple" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-railscasts.fish b/functions/base16-railscasts.fish index 8fdee5a..7060414 100644 --- a/functions/base16-railscasts.fish +++ b/functions/base16-railscasts.fish @@ -31,22 +31,22 @@ function base16-railscasts -d "Railscasts" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-rebecca.fish b/functions/base16-rebecca.fish index 7c16d38..2a15b71 100644 --- a/functions/base16-rebecca.fish +++ b/functions/base16-rebecca.fish @@ -31,22 +31,22 @@ function base16-rebecca -d "Rebecca" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-seti.fish b/functions/base16-seti.fish index 787414e..b47006b 100644 --- a/functions/base16-seti.fish +++ b/functions/base16-seti.fish @@ -31,22 +31,22 @@ function base16-seti -d "Seti UI" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-shapeshifter.fish b/functions/base16-shapeshifter.fish index f28a42b..d79d650 100644 --- a/functions/base16-shapeshifter.fish +++ b/functions/base16-shapeshifter.fish @@ -31,22 +31,22 @@ function base16-shapeshifter -d "Shapeshifter" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-snazzy.fish b/functions/base16-snazzy.fish index 137ed3b..a9eb66d 100644 --- a/functions/base16-snazzy.fish +++ b/functions/base16-snazzy.fish @@ -31,22 +31,22 @@ function base16-snazzy -d "Snazzy" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-solarflare.fish b/functions/base16-solarflare.fish index e7cdd80..7fd7bf0 100644 --- a/functions/base16-solarflare.fish +++ b/functions/base16-solarflare.fish @@ -31,22 +31,22 @@ function base16-solarflare -d "Solar Flare" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-solarized-dark.fish b/functions/base16-solarized-dark.fish index 21ea784..7c9907a 100644 --- a/functions/base16-solarized-dark.fish +++ b/functions/base16-solarized-dark.fish @@ -31,22 +31,22 @@ function base16-solarized-dark -d "Solarized Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-solarized-light.fish b/functions/base16-solarized-light.fish index ac59059..752455f 100644 --- a/functions/base16-solarized-light.fish +++ b/functions/base16-solarized-light.fish @@ -31,22 +31,22 @@ function base16-solarized-light -d "Solarized Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-spacemacs.fish b/functions/base16-spacemacs.fish index 0e9b85c..9358532 100644 --- a/functions/base16-spacemacs.fish +++ b/functions/base16-spacemacs.fish @@ -31,22 +31,22 @@ function base16-spacemacs -d "Spacemacs" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-summerfruit-dark.fish b/functions/base16-summerfruit-dark.fish index d2f30be..4ceeec4 100644 --- a/functions/base16-summerfruit-dark.fish +++ b/functions/base16-summerfruit-dark.fish @@ -31,22 +31,22 @@ function base16-summerfruit-dark -d "Summerfruit Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-summerfruit-light.fish b/functions/base16-summerfruit-light.fish index b1c4b8d..0948280 100644 --- a/functions/base16-summerfruit-light.fish +++ b/functions/base16-summerfruit-light.fish @@ -31,22 +31,22 @@ function base16-summerfruit-light -d "Summerfruit Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-synth-midnight-dark.fish b/functions/base16-synth-midnight-dark.fish index 3f84b95..ed3f565 100644 --- a/functions/base16-synth-midnight-dark.fish +++ b/functions/base16-synth-midnight-dark.fish @@ -31,22 +31,22 @@ function base16-synth-midnight-dark -d "Synth Midnight Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-tomorrow-night-eighties.fish b/functions/base16-tomorrow-night-eighties.fish index ca7560f..60c9854 100644 --- a/functions/base16-tomorrow-night-eighties.fish +++ b/functions/base16-tomorrow-night-eighties.fish @@ -31,22 +31,22 @@ function base16-tomorrow-night-eighties -d "Tomorrow Night" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-tomorrow-night.fish b/functions/base16-tomorrow-night.fish index 238ae07..2c4a255 100644 --- a/functions/base16-tomorrow-night.fish +++ b/functions/base16-tomorrow-night.fish @@ -31,22 +31,22 @@ function base16-tomorrow-night -d "Tomorrow Night" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-tomorrow.fish b/functions/base16-tomorrow.fish index 41807de..5c23987 100644 --- a/functions/base16-tomorrow.fish +++ b/functions/base16-tomorrow.fish @@ -31,22 +31,22 @@ function base16-tomorrow -d "Tomorrow" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-tube.fish b/functions/base16-tube.fish index 6b82d99..655c5ad 100644 --- a/functions/base16-tube.fish +++ b/functions/base16-tube.fish @@ -31,22 +31,22 @@ function base16-tube -d "London Tube" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-twilight.fish b/functions/base16-twilight.fish index e5c76c4..4e8e75a 100644 --- a/functions/base16-twilight.fish +++ b/functions/base16-twilight.fish @@ -31,22 +31,22 @@ function base16-twilight -d "Twilight" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-unikitty-dark.fish b/functions/base16-unikitty-dark.fish index 29c2176..8376e78 100644 --- a/functions/base16-unikitty-dark.fish +++ b/functions/base16-unikitty-dark.fish @@ -31,22 +31,22 @@ function base16-unikitty-dark -d "Unikitty Dark" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-unikitty-light.fish b/functions/base16-unikitty-light.fish index 04cd5c6..e5d1c94 100644 --- a/functions/base16-unikitty-light.fish +++ b/functions/base16-unikitty-light.fish @@ -31,22 +31,22 @@ function base16-unikitty-light -d "Unikitty Light" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-woodland.fish b/functions/base16-woodland.fish index cc53c1c..522d5d9 100644 --- a/functions/base16-woodland.fish +++ b/functions/base16-woodland.fish @@ -31,22 +31,22 @@ function base16-woodland -d "Woodland" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-xcode-dusk.fish b/functions/base16-xcode-dusk.fish index 0c4e95d..95fa822 100644 --- a/functions/base16-xcode-dusk.fish +++ b/functions/base16-xcode-dusk.fish @@ -31,22 +31,22 @@ function base16-xcode-dusk -d "XCode Dusk" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/functions/base16-zenburn.fish b/functions/base16-zenburn.fish index dc3992a..7c15df9 100644 --- a/functions/base16-zenburn.fish +++ b/functions/base16-zenburn.fish @@ -31,22 +31,22 @@ function base16-zenburn -d "Zenburn" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space diff --git a/templates/default.mustache b/templates/default.mustache index 068a3a8..65f8136 100644 --- a/templates/default.mustache +++ b/templates/default.mustache @@ -31,22 +31,22 @@ function base16-{{scheme-slug}} -d "{{scheme-name}}" if test -n "$TMUX" # Tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) - function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; - function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + function put_template; printf '\ePtmux;\e\e]4;%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_var; printf '\ePtmux;\e\e]%d;rgb:%s\e\e\\\e\\' $argv; end; + function put_template_custom; printf '\ePtmux;\e\e]%s%s\e\e\\\e\\' $argv; end; else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] # GNU screen (screen, screen-256color, screen-256color-bce) - function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; - function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; - function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + function put_template; printf '\eP\e]4;%d;rgb:%s\a\e\\' $argv; end; + function put_template_var; printf '\eP\e]%d;rgb:%s\a\e\\' $argv; end; + function put_template_custom; printf '\eP\e]%s%s\a\e\\' $argv; end; else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] function put_template; test $1 -lt 16 && printf "\e]P%x%s" $1 (echo $2 | sed 's/\///g'); end; function put_template_var; true; end; function put_template_custom; true; end; else - function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; - function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; - function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + function put_template; printf '\e]4;%d;rgb:%s\e\\' $argv; end; + function put_template_var; printf '\e]%d;rgb:%s\e\\' $argv; end; + function put_template_custom; printf '\e]%s%s\e\\' $argv; end; end # 16 color space