dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 40a863c304291175d3fef607c19843cb131c869c
parent fdc818c7a642771e1e95e12fefb13b4154951d52
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue,  8 Jan 2019 15:01:38 +0100

Add script for showing 256 colors in terminal

Diffstat:
Alinks/bin/colors-256.sh | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/links/bin/colors-256.sh b/links/bin/colors-256.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +for i in {0..255} ; do + printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i" + if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then + printf "\n"; + fi +done