aboutsummaryrefslogtreecommitdiffstats
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
parentcolors: fix dark grey not showing up. Closes T2245 (diff)
downloadterminology-563517fbc906cde3e13040612fe99811bffbde32.tar.gz
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++) {
}
print "\x1b[0m\n\n";
-print "Bright colors:\n";
+print "Bright colors: background\n";
+for ($color = 40; $color < 48; $color++) {
+ print "\x1b[1;${color}m ";
+}
+print "\x1b[0m\n";
+for ($color = 100; $color < 108; $color++) {
+ print "\x1b[1;${color}m ";
+}
+print "\x1b[0m\n\n";
+
+print "Bright colors: foreground\n";
for ($color = 30; $color < 38; $color++) {
print "\x1b[1;${color}m██";
}
@@ -71,7 +81,17 @@ for ($color = 90; $color < 98; $color++) {
}
print "\x1b[0m\n\n";
-print "Dim/Faint colors:\n";
+print "Dim/Faint colors: background\n";
+for ($color = 40; $color < 48; $color++) {
+ print "\x1b[2;${color}m ";
+}
+print "\x1b[0m\n";
+for ($color = 100; $color < 108; $color++) {
+ print "\x1b[2;${color}m ";
+}
+print "\x1b[0m\n\n";
+
+print "Dim/Faint colors: foreground\n";
for ($color = 30; $color < 38; $color++) {
print "\x1b[2;${color}m██";
}