Mercurial > libervia-backend
diff frontends/src/jp/constants.py @ 2232:4f389486667d
jp: added constant to handle ANSI code for header and subheaders
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 27 Apr 2017 00:57:04 +0200 |
parents | d823a0cdbcc2 |
children | bf998d8626d9 |
line wrap: on
line diff
--- a/frontends/src/jp/constants.py Thu Apr 27 00:55:02 2017 +0200 +++ b/frontends/src/jp/constants.py Thu Apr 27 00:57:04 2017 +0200 @@ -18,6 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. from sat_frontends.quick_frontend import constants +from sat.tools.common.ansi import ANSI as A class Const(constants.Const): @@ -33,6 +34,10 @@ OUTPUT_LIST_XML = u'list_xml' # list of XML nodes (as unicode strings) OUTPUT_TYPES = (OUTPUT_TEXT, OUTPUT_DICT, OUTPUT_LIST, OUTPUT_COMPLEX, OUTPUT_XML, OUTPUT_LIST_XML) + # ANSI + A_HEADER = A.BOLD + A.FG_YELLOW + A_SUBHEADER = A.BOLD + A.FG_RED + # exit codes EXIT_OK = 0 EXIT_ERROR = 1 # generic error, when nothing else match