#!/bin/sh
foreground=e0e0e0
background=000000
regular0=2e2016  # black
regular1=d88f96  # red
regular2=16af38  # green
regular3=dbbc2f  # yellow
regular4=1961e6 # blue
regular5=b3787e  # magenta
regular6=32cbe6  # cyan
regular7=f4e5e7  # white
bright0=473032   # bright black
bright1=e5a7aa   # bright red
bright2=27d64d   # bright green
bright3=f3d64d   # bright yellow
bright4=4545db   # bright blue
bright5=c6888d   # bright magenta
bright6=67cbe6   # bright cyan
bright7=fcf5f3   # bright white

if [[ "$TERM" = "vt102" || "$TERM" = "linux" ]]; then
        printf "\e]P$background\e]P1$regular1\e]P2$regular2\e]P3$regular3\e]P4$regular4\e]P5$regular5\e]P6$regular6\e]P7$foreground\e]P8$bright0\e]P9$bright1\e]PA$bright2\e]PB$bright3\e]PC$bright4\e]PD$bright5\e]PE$bright6\e]PF$bright7"
fi