Created
November 20, 2019 19:32
-
-
Save 1N0T/b0f8b808f29de9e09e282731c115307c to your computer and use it in GitHub Desktop.
(bash) lista de colores ansi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NC='\033[0m' | |
for modo in $(seq 0 1); do | |
for color in $(seq 30 37); do | |
# Color sin fondo (primera columna) | |
COLOR="\033[${modo};${color}m" | |
TEXTO=" ${modo};${color} " | |
printf "${COLOR}${TEXTO}${NC} " | |
for fondo in $(seq 40 47); do | |
# Colores con fondo (resto de columnas) | |
COLOR="\033[${modo};${color};${fondo}m" | |
TEXTO=" ${modo};${color};${fondo} " | |
printf "${COLOR}${TEXTO}${NC} " | |
done | |
echo | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment