plainbox.impl.color – ANSI color codes

class plainbox.impl.color.ansi_off[source]
class b[source]
BLACK = ''
BLUE = ''
CYAN = ''
GREEN = ''
MAGENTA = ''
RED = ''
RESET = ''
WHITE = ''
YELLOW = ''
class ansi_off.f[source]
BLACK = ''
BLUE = ''
CYAN = ''
GREEN = ''
MAGENTA = ''
RED = ''
RESET = ''
WHITE = ''
YELLOW = ''
class ansi_off.s[source]
BRIGHT = ''
DIM = ''
NORMAL = ''
RESET_ALL = ''
class plainbox.impl.color.ansi_on[source]

ANSI control codes for various useful stuff. Reference source: wikipedia

class b[source]

Background color attributes

BLACK = '\x1b[40m'
BLUE = '\x1b[44m'
CYAN = '\x1b[46m'
GREEN = '\x1b[42m'
MAGENTA = '\x1b[45m'
RED = '\x1b[41m'
RESET = '\x1b[49m'
WHITE = '\x1b[47m'
YELLOW = '\x1b[44m'
class ansi_on.f[source]

Foreground color attributes

BLACK = '\x1b[30m'
BLUE = '\x1b[34m'
CYAN = '\x1b[36m'
GREEN = '\x1b[32m'
MAGENTA = '\x1b[35m'
RED = '\x1b[31m'
RESET = '\x1b[39m'
WHITE = '\x1b[37m'
YELLOW = '\x1b[33m'
class ansi_on.s[source]

Style attributes

BRIGHT = '\x1b[1m'
DIM = '\x1b[2m'
NORMAL = '\x1b[22m'
RESET_ALL = '\x1b[0m'
plainbox.impl.color.obj_off

alias of s

plainbox.impl.color.obj_on

alias of s

Previous topic

plainbox.impl.box – command line interface

Next topic

plainbox.impl.commands – shared code for plainbox sub-commands

This Page