# HG changeset patch # User Oleksandr Gavenko # Date 1315437187 -10800 # Node ID 6a75b1b2976b5bbfd358cd9ab8820c7f408a7e70 # Parent a67767dffaf31b148198f415c93c19631a366ada Check terminal capabilities. diff -r a67767dffaf3 -r 6a75b1b2976b 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. ======================