Skip to content

Enums#

BaseEnum #

Bases: Enum

Base enum for Colors, BgColors and FontStyles

items property #

items: Tuple[str, int]

Returns:

Type Description
Tuple[str, int]

color name and code

__str__ #

__str__()

Returns:

Name Type Description
code str

color code

BgColors #

Bases: BaseEnum

Background colors

Properties
  • black
  • dark_grey
  • red
  • bright_red
  • green
  • bright_green
  • orange
  • yellow
  • blue
  • bright_blue
  • purple
  • pink
  • cyan
  • bright_cyan
  • grey
  • white

Colors #

Bases: BaseEnum

Foreground colors or font colors

Properties
  • black
  • dark_grey
  • red
  • bright_red
  • green
  • bright_green
  • orange
  • yellow
  • blue
  • bright_blue
  • purple
  • pink
  • cyan
  • bright_cyan
  • grey
  • white

FontStyles #

Bases: BaseEnum

Font styles

Properties
  • default
  • bold
  • dim
  • italic
  • underline
  • blink
  • rapid_blink
  • inverse
  • hidden
  • strike_through
  • framed
  • encircled
  • overlined