From 208dc56791ff3dcbc591d079869e813570232b08 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 1 Aug 2021 08:14:25 -0700 Subject: [PATCH] document colors function --- sh/colors | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sh/colors b/sh/colors index be713cf..af169d7 100755 --- a/sh/colors +++ b/sh/colors @@ -4,8 +4,11 @@ # NO_DASH colors() { ### @- - ### print out all the foreground and background terminal color combinations. + ### display all combinations of foreground and background terminal colors. + ### this only includes the basic 16-color palette. ### excluding boilerplate, this script is a mere a 76-characters long! + ### + ### ![terminal colors](https://eaguru.guru/t/terminal-colors.png) [ $# -eq 0 ] || { printf "%s\n" "$0: does not take arguments" >&2; return 1; } printf "\e[%dm$(printf " \e[%dm mV \e[40m" {4,10}{0..7})\e[0m\n" {3,9}{0..7} }