core (constants): added some basic ANSI escape codes
This commit is contained in:
parent
3fcd7e22d9
commit
28ad5741fd
1 changed files with 10 additions and 0 deletions
|
|
@ -75,3 +75,13 @@ class Const(object):
|
|||
## Misc ##
|
||||
SAVEFILE_DATABASE = "sat.db"
|
||||
IQ_SET = '/iq[@type="set"]'
|
||||
|
||||
## ANSI escape sequences ##
|
||||
# XXX: used for logging
|
||||
# XXX: there will be probably moved in a dedicated module in the future
|
||||
ANSI_RESET = '\033[0m'
|
||||
ANSI_NORMAL_WEIGHT = '\033[22m'
|
||||
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))
|
||||
ANSI_BOLD = '\033[1m'
|
||||
ANSI_BLINK = '\033[5m'
|
||||
ANSI_BLINK_OFF = '\033[25m'
|
||||
|
|
|
|||
Loading…
Reference in a new issue