1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#! /bin/bash # Definición de la sequencia de escape ESC_SEQ=$'\x1b[' # Sequencia para los atributos for a in 0 1 2 4 7 do # Sequencia de colores for b in 0 1 2 3 4 5 6 7 do echo -n "${ESC_SEQ}${a};3${b};4$(( 7 - ${b} ))m ${a};3${b};4$(( 7 - ${b} ))m " done; echo "${ESC_SEQ}0;0m" done echo |