Mercurial > libervia-backend
comparison src/core/constants.py @ 990:f0e407709d8e
core (constants): added some basic ANSI escape codes
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 18 Apr 2014 23:36:52 +0200 |
parents | 8ca5c990ed92 |
children | 05e02f8b7eb4 |
comparison
equal
deleted
inserted
replaced
989:93359853e4bc | 990:f0e407709d8e |
---|---|
73 TEXT_CMDS = 'TEXT-COMMANDS' | 73 TEXT_CMDS = 'TEXT-COMMANDS' |
74 | 74 |
75 ## Misc ## | 75 ## Misc ## |
76 SAVEFILE_DATABASE = "sat.db" | 76 SAVEFILE_DATABASE = "sat.db" |
77 IQ_SET = '/iq[@type="set"]' | 77 IQ_SET = '/iq[@type="set"]' |
78 | |
79 ## ANSI escape sequences ## | |
80 # XXX: used for logging | |
81 # XXX: there will be probably moved in a dedicated module in the future | |
82 ANSI_RESET = '\033[0m' | |
83 ANSI_NORMAL_WEIGHT = '\033[22m' | |
84 ANSI_FG_BLACK, ANSI_FG_RED, ANSI_FG_GREEN, ANSI_FG_YELLOW, ANSI_FG_BLUE, ANSI_FG_MAGENTA, ANSI_FG_CYAN, ANSI_FG_WHITE = ('\033[3%dm' % nb for nb in xrange(8)) | |
85 ANSI_BOLD = '\033[1m' | |
86 ANSI_BLINK = '\033[5m' | |
87 ANSI_BLINK_OFF = '\033[25m' |