color
Class: ForegroundColor
A collection of ANSI foreground colors in the Python format.
Attribute: black
Black ANSI foreground color.
Source
black = "\033[30m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.black
Attribute: red
Red ANSI foreground color.
Source
red = "\033[31m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.red
Attribute: green
Green ANSI foreground color.
Source
green = "\033[32m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.green
Attribute: orange
Orange ANSI foreground color.
Source
orange = "\033[33m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.orange
Attribute: blue
Blue ANSI foreground color.
Source
blue = "\033[34m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.blue
Attribute: purple
Purple ANSI foreground color.
Source
purple = "\033[35m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.purple
Attribute: cyan
Cyan ANSI foreground color.
Source
cyan = "\033[36m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.cyan
Attribute: pink
Pink ANSI foreground color.
Source
pink = "\033[95m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.pink
Attribute: yellow
Yellow ANSI foreground color.
Source
yellow = "\033[93m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.yellow
Attribute: white
White ANSI foreground color.
Source
white = "\033[37m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.white
Attribute: grey
Grey ANSI foreground color.
Source
grey = "\033[90m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.grey
Attribute: light_red
Light red ANSI foreground color.
Source
light_red = "\033[91m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.light_red
Attribute: light_green
Light green ANSI foreground color.
Source
light_green = "\033[92m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.light_green
Attribute: light_blue
Light blue ANSI foreground color.
Source
light_blue = "\033[94m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.light_blue
Attribute: light_cyan
Light cyan ANSI foreground color.
Source
light_cyan = "\033[96m"
Example
from logpy.ansi import ForegroundColor
ForegroundColor.light_cyan
Class: BackgroundColor
A collection of ANSI background colors in the Python format.
Attribute: black
Black ANSI background color.
Source
black = "\033[40m"
Example
from logpy.ansi import BackgroundColor
BackgroundColor.black
Attribute: red
Red ANSI background color.
Source
red = "\033[41m"
Example
from logpy.ansi import BackgroundColor
BackgroundColor.red
Attribute: green
Green ANSI background color.
Source
green = "\033[42m"
Example
from logpy.ansi import BackgroundColor
BackgroundColor.green
Attribute: orange
Orange ANSI background color.
Source
orange = "\033[43m"
Example
from logpy.ansi import BackgroundColor
BackgroundColor.orange
Attribute: blue
Blue ANSI background color.
Source
blue = "\033[44m"
Example
from logpy.ansi import BackgroundColor
BackgroundColor.blue
Attribute: purple
Purple ANSI background color.
Source
purple = "\033[45m"
Example
from logpy.ansi import BackgroundColor
BackgroundColor.purple
Attribute: cyan
Cyan ANSI background color.
Source
cyan = "\033[46m"
Example
from logpy.ansi import BackgroundColor
BackgroundColor.cyan
Attribute: white
White ANSI background color.
Source
white = "\033[47m"
Example
from logpy.ansi import BackgroundColor
BackgroundColor.white