dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: 92c3382de58cad0459e796b38f369eb62c208b45
Parent: 81d098a0a47a05593abab71a64a6e79c4d39ef4e
Author: Randy Palamar
Date:   Mon, 19 Aug 2024 07:49:19 -0600

add 256 colour dumping script

Diffstat:
Abin/colours | 31+++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+), 0 deletions(-)

diff --git a/bin/colours b/bin/colours @@ -0,0 +1,31 @@ +#!/usr/alt/bin/rc +fn colourline { + for (c) printf '\e[48;5;%dm%03d' $c $c + printf '\e[0m \n' +} + +colourline `{seq 0 15} +for (i in `{seq 0 5}) colourline `{seq `{expr $i '*' 36 + 16} `{expr $i '*' 36 + 51}} +colourline `{seq 232 255} + +# Print the 16 configured terminal colors. + +printf '\n' +printf '# | ASCII | Name | Base16\n' +printf '---------------------------------------------\n' +printf ' 0 | 30 / | black | base0 \n' +printf ' 1 | 31 / | red | base8 \n' +printf ' 2 | 32 / | green | base11 \n' +printf ' 3 | 33 | yellow | base10 \n' +printf ' 4 | 34 | blue | base13 \n' +printf ' 5 | 35 | magenta | base14 \n' +printf ' 6 | 36 | cyan | base12 \n' +printf ' 7 | 37 | white | base5 \n' +printf ' 8 | 90 | brightblack | base3 \n' +printf ' 9 | 91 | brightred | base9 \n' +printf '10 | 92 | brightgreen | base1 \n' +printf '11 | 93 | brightyellow | base2 \n' +printf '12 | 94 | brightblue | base4 \n' +printf '13 | 95 | brightmagenta | base6 \n' +printf '14 | 96 | brightcyan | base15 \n' +printf '15 | 97 | brightwhite | base7 \n'