Skip to content

Commit

Permalink
Update with the latest tinted-theming colorschemes
Browse files Browse the repository at this point in the history
  • Loading branch information
tinted-theming-bot committed Oct 9, 2024
1 parent 712169f commit 925f28e
Show file tree
Hide file tree
Showing 17 changed files with 272 additions and 187 deletions.
27 changes: 16 additions & 11 deletions scripts/base24-brogrammer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,30 @@ color21="e3/e6/ed" # Base 06
color_foreground="c1/c8/d7" # Base 05
color_background="13/13/13" # Base 00

if [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then

if [ -z "$TTY" ] && ! TTY=$(tty); then
put_template() { true; }
put_template_var() { true; }
put_template_custom() { true; }
elif [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then
# Tell tmux to pass the escape sequences through
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@"; }
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%[-.]*}" = "screen" ]; then
# GNU screen (screen, screen-256color, screen-256color-bce)
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@"; }
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%-*}" = "linux" ]; then
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')"; }
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')" > "$TTY"; }
put_template_var() { true; }
put_template_custom() { true; }
else
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@"; }
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@" > "$TTY"; }
fi

# 16 color space
Expand Down
27 changes: 16 additions & 11 deletions scripts/base24-catppuccin-frappe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,30 @@ color21="f2/d5/cf" # Base 06
color_foreground="c6/d0/f5" # Base 05
color_background="30/34/46" # Base 00

if [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then

if [ -z "$TTY" ] && ! TTY=$(tty); then
put_template() { true; }
put_template_var() { true; }
put_template_custom() { true; }
elif [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then
# Tell tmux to pass the escape sequences through
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@"; }
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%[-.]*}" = "screen" ]; then
# GNU screen (screen, screen-256color, screen-256color-bce)
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@"; }
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%-*}" = "linux" ]; then
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')"; }
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')" > "$TTY"; }
put_template_var() { true; }
put_template_custom() { true; }
else
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@"; }
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@" > "$TTY"; }
fi

# 16 color space
Expand Down
27 changes: 16 additions & 11 deletions scripts/base24-catppuccin-latte.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,30 @@ color21="dc/8a/78" # Base 06
color_foreground="4c/4f/69" # Base 05
color_background="ef/f1/f5" # Base 00

if [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then

if [ -z "$TTY" ] && ! TTY=$(tty); then
put_template() { true; }
put_template_var() { true; }
put_template_custom() { true; }
elif [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then
# Tell tmux to pass the escape sequences through
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@"; }
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%[-.]*}" = "screen" ]; then
# GNU screen (screen, screen-256color, screen-256color-bce)
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@"; }
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%-*}" = "linux" ]; then
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')"; }
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')" > "$TTY"; }
put_template_var() { true; }
put_template_custom() { true; }
else
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@"; }
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@" > "$TTY"; }
fi

# 16 color space
Expand Down
27 changes: 16 additions & 11 deletions scripts/base24-catppuccin-macchiato.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,30 @@ color21="f4/db/d6" # Base 06
color_foreground="ca/d3/f5" # Base 05
color_background="24/27/3a" # Base 00

if [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then

if [ -z "$TTY" ] && ! TTY=$(tty); then
put_template() { true; }
put_template_var() { true; }
put_template_custom() { true; }
elif [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then
# Tell tmux to pass the escape sequences through
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@"; }
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%[-.]*}" = "screen" ]; then
# GNU screen (screen, screen-256color, screen-256color-bce)
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@"; }
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%-*}" = "linux" ]; then
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')"; }
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')" > "$TTY"; }
put_template_var() { true; }
put_template_custom() { true; }
else
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@"; }
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@" > "$TTY"; }
fi

# 16 color space
Expand Down
27 changes: 16 additions & 11 deletions scripts/base24-catppuccin-mocha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,30 @@ color21="f5/e0/dc" # Base 06
color_foreground="cd/d6/f4" # Base 05
color_background="1e/1e/2e" # Base 00

if [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then

if [ -z "$TTY" ] && ! TTY=$(tty); then
put_template() { true; }
put_template_var() { true; }
put_template_custom() { true; }
elif [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then
# Tell tmux to pass the escape sequences through
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@"; }
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%[-.]*}" = "screen" ]; then
# GNU screen (screen, screen-256color, screen-256color-bce)
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@"; }
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%-*}" = "linux" ]; then
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')"; }
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')" > "$TTY"; }
put_template_var() { true; }
put_template_custom() { true; }
else
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@"; }
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@" > "$TTY"; }
fi

# 16 color space
Expand Down
27 changes: 16 additions & 11 deletions scripts/base24-chalk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,30 @@ color21="e0/e0/e0" # Base 06
color_foreground="d0/d0/d0" # Base 05
color_background="15/15/15" # Base 00

if [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then

if [ -z "$TTY" ] && ! TTY=$(tty); then
put_template() { true; }
put_template_var() { true; }
put_template_custom() { true; }
elif [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then
# Tell tmux to pass the escape sequences through
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@"; }
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%[-.]*}" = "screen" ]; then
# GNU screen (screen, screen-256color, screen-256color-bce)
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@"; }
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%-*}" = "linux" ]; then
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')"; }
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')" > "$TTY"; }
put_template_var() { true; }
put_template_custom() { true; }
else
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@"; }
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@" > "$TTY"; }
fi

# 16 color space
Expand Down
27 changes: 16 additions & 11 deletions scripts/base24-deep-oceanic-next.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,30 @@ color21="e6/eb/f0" # Base 06
color_foreground="dc/e3/e8" # Base 05
color_background="00/3b/46" # Base 00

if [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then

if [ -z "$TTY" ] && ! TTY=$(tty); then
put_template() { true; }
put_template_var() { true; }
put_template_custom() { true; }
elif [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then
# Tell tmux to pass the escape sequences through
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@"; }
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%[-.]*}" = "screen" ]; then
# GNU screen (screen, screen-256color, screen-256color-bce)
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@"; }
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%-*}" = "linux" ]; then
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')"; }
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')" > "$TTY"; }
put_template_var() { true; }
put_template_custom() { true; }
else
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@"; }
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@" > "$TTY"; }
fi

# 16 color space
Expand Down
27 changes: 16 additions & 11 deletions scripts/base24-dracula.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,30 @@ color21="f0/f1/f4" # Base 06
color_foreground="f8/f8/f2" # Base 05
color_background="28/2a/36" # Base 00

if [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then

if [ -z "$TTY" ] && ! TTY=$(tty); then
put_template() { true; }
put_template_var() { true; }
put_template_custom() { true; }
elif [ -n "$TMUX" ] || [ "${TERM%%[-.]*}" = "tmux" ]; then
# Tell tmux to pass the escape sequences through
# (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@"; }
put_template() { printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%[-.]*}" = "screen" ]; then
# GNU screen (screen, screen-256color, screen-256color-bce)
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@"; }
put_template() { printf '\033P\033]4;%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033P\033]%d;rgb:%s\007\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033P\033]%s%s\007\033\\' "$@" > "$TTY"; }
elif [ "${TERM%%-*}" = "linux" ]; then
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')"; }
put_template() { [ "$1" -lt 16 ] && printf "\e]P%x%s" "$1" "$(echo "$2" | sed 's/\///g')" > "$TTY"; }
put_template_var() { true; }
put_template_custom() { true; }
else
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@"; }
put_template() { printf '\033]4;%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_var() { printf '\033]%d;rgb:%s\033\\' "$@" > "$TTY"; }
put_template_custom() { printf '\033]%s%s\033\\' "$@" > "$TTY"; }
fi

# 16 color space
Expand Down
Loading

0 comments on commit 925f28e

Please sign in to comment.