miscset.sh.AnsiColor

class miscset.sh.AnsiColor[source]

Bases: object

A selection of shell ansi color strings.

Insert these values into strings to (de-)colorize shell outputs in a terminal.

See also: https://en.wikipedia.org/wiki/ANSI_escape_code#Colors

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__()

Initialize self.

Attributes

black

blue

cyan

dark_gray

green

light_blue

light_cyan

light_gray

light_green

light_purple

light_red

orange

purple

red

reset

white

yellow

black = '\x1b[0;30m'
blue = '\x1b[0;34m'
cyan = '\x1b[0;36m'
dark_gray = '\x1b[1;30m'
green = '\x1b[0;32m'
light_blue = '\x1b[1;34m'
light_cyan = '\x1b[1;36m'
light_gray = '\x1b[0;37m'
light_green = '\x1b[1;32m'
light_purple = '\x1b[1;35m'
light_red = '\x1b[1;31m'
orange = '\x1b[0;33m'
purple = '\x1b[0;35m'
red = '\x1b[0;31m'
reset = '\x1b[0m'
white = '\x1b[1;37m'
yellow = '\x1b[1;33m'