all repos — dotfiles @ 67dc83a52fc94bdad029e249ec2cbf20f3f731aa

my *nix dotfiles

home/bin/coltest (view raw)

 1#!/usr/bin/env bash
 2
 3BLK="\e[30m"
 4RED="\e[31m"
 5GRN="\e[32m"
 6YLW="\e[33m"
 7BLU="\e[34m"
 8PUR="\e[35m"
 9CYN="\e[36m"
10WHT="\e[37m"
11RST="\e[0m"
12
13# printf '%b\n' " no color "
14# printf '%b\n' "${BLK} black ${RST}   [black]"
15# printf '%b\n' "${RED} red ${RST}     [red]"
16# printf '%b\n' "${GRN} green ${RST}   [green]"
17# printf '%b\n' "${YLW} yellow ${RST}  [yellow]"
18# printf '%b\n' "${BLU} blue ${RST}    [blue]"
19# printf '%b\n' "${PUR} purple ${RST}  [purple]"
20# printf '%b\n' "${CYN} cyan ${RST}    [cyan]"
21# printf '%b\n' "${WHT} white ${RST}   [white]"
22
23printf '\n'
24
25for (( i=0; i<7; i++ )); do
26    printf '\033[4%sm  \033[m ' "$i"
27done
28
29printf '\n'