summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-04-03 20:15:27 +0200
committerBoris Faure <billiob@gmail.com>2015-04-04 17:37:42 +0200
commit563517fbc906cde3e13040612fe99811bffbde32 (patch)
tree2b8ae509ae72280be95c918a600f51ee1020b4cb /tools
parenta9199f199b15f739abf11874bc1553d3a6d887cf (diff)
update 256color.pl to show more background/foreground colors
Diffstat (limited to 'tools')
-rwxr-xr-xtools/256color.pl24
1 files changed, 22 insertions, 2 deletions
diff --git a/tools/256color.pl b/tools/256color.pl
index aee7fd4..77a2132 100755
--- a/tools/256color.pl
+++ b/tools/256color.pl
@@ -61,7 +61,17 @@ for ($color = 90; $color < 98; $color++) {
61} 61}
62print "\x1b[0m\n\n"; 62print "\x1b[0m\n\n";
63 63
64print "Bright colors:\n"; 64print "Bright colors: background\n";
65for ($color = 40; $color < 48; $color++) {
66 print "\x1b[1;${color}m ";
67}
68print "\x1b[0m\n";
69for ($color = 100; $color < 108; $color++) {
70 print "\x1b[1;${color}m ";
71}
72print "\x1b[0m\n\n";
73
74print "Bright colors: foreground\n";
65for ($color = 30; $color < 38; $color++) { 75for ($color = 30; $color < 38; $color++) {
66 print "\x1b[1;${color}m██"; 76 print "\x1b[1;${color}m██";
67} 77}
@@ -71,7 +81,17 @@ for ($color = 90; $color < 98; $color++) {
71} 81}
72print "\x1b[0m\n\n"; 82print "\x1b[0m\n\n";
73 83
74print "Dim/Faint colors:\n"; 84print "Dim/Faint colors: background\n";
85for ($color = 40; $color < 48; $color++) {
86 print "\x1b[2;${color}m ";
87}
88print "\x1b[0m\n";
89for ($color = 100; $color < 108; $color++) {
90 print "\x1b[2;${color}m ";
91}
92print "\x1b[0m\n\n";
93
94print "Dim/Faint colors: foreground\n";
75for ($color = 30; $color < 38; $color++) { 95for ($color = 30; $color < 38; $color++) {
76 print "\x1b[2;${color}m██"; 96 print "\x1b[2;${color}m██";
77} 97}