smullins7 / termcolors

python class that will format output with color using ANSI escape sequences

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terminal-colors uses ANSI escape sequences to colorize output to a terminal. Most terminals recognize all escape sequences this library uses.

foreground colors

  • Black
  • Dark Gray
  • Blue
  • Light Blue
  • Green
  • Light Green
  • Cyan
  • Light Cyan
  • Red
  • Light Red
  • Purple
  • Light Purple
  • Brown
  • Yellow
  • Light Gray
  • White

background colors

  • Black
  • Red
  • Green
  • Brown
  • Blue
  • Purple
  • Cyan
  • Light Gray

effects

  • Underscore
  • Blink
  • Blink Fast
  • Inverse
  • Concealed
  • Strikeout

to see what the colors look like and what effects are supported in your terminal, run

./test.py

About

python class that will format output with color using ANSI escape sequences


Languages

Language:Python 100.0%