dotfiles

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

colours (1344B)


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