summaryrefslogtreecommitdiffstats
path: root/konsole/tests/colortest.sh
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /konsole/tests/colortest.sh
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konsole/tests/colortest.sh')
-rwxr-xr-xkonsole/tests/colortest.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/konsole/tests/colortest.sh b/konsole/tests/colortest.sh
new file mode 100755
index 000000000..36a1336dc
--- /dev/null
+++ b/konsole/tests/colortest.sh
@@ -0,0 +1,31 @@
+#!/bin/bash --
+#
+# display ANSI colours and test bold/blink attributes
+# orginates from Eterm distribution
+#-------------------------------------------------------------------------
+
+ESC=$'\x1b'
+CSI="${ESC}["
+RST="${CSI}m"
+
+echo ""; echo "${RST}"
+echo " 40 41 42 43 44 45 46 47 49"
+echo " 40 41 42 43 44 45 46 47 49"
+for fg in 30 31 32 33 34 35 36 37 39 90 91 92 93 94 95 96 97
+do
+ l1="$fg ";
+ l2=" ";
+ l3=" ";
+ l4=" ";
+ for bg in 40 41 42 43 44 45 46 47 49
+ do
+ l1="${l1}${CSI}${fg};${bg}m Normal ${RST}"
+ l2="${l2}${CSI}${fg};${bg};1m Bold ${RST}"
+ l3="${l3}${CSI}${fg};${bg};5m Blink ${RST}"
+ l4="${l4}${CSI}${fg};${bg};1;5m Bold! ${RST}"
+ done
+ echo "$l1"
+ echo "$l2"
+ echo "$l3"
+ echo "$l4"
+done