Check terminal capabilities.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 08 Sep 2011 02:13:07 +0300
changeset 985 6a75b1b2976b
parent 984 a67767dffaf3
child 986 858ecbc30566
Check terminal capabilities.
terminal.rst
--- a/terminal.rst	Wed Sep 07 19:34:28 2011 +0300
+++ b/terminal.rst	Thu Sep 08 02:13:07 2011 +0300
@@ -8,6 +8,21 @@
   http://en.wikipedia.org/wiki/ECMA-48
                 ANSI escape sequences
 
+Check terminal capabilities.
+============================
+::
+
+ $ infocmp -1 xterm
+        ...
+    colors#8,
+    bold=\E[1m,
+    blink=\E[5m,
+        ...
+  $ tput -Txterm colors
+  8
+  $ tput -Txterm blink
+  ^[[5m
+
 Old hardware terminal.
 ======================