Home > escc

escc

Escc is a project mainly written in Python, it's free.

Silly ESCape sequence Color wrapper for Python

Silly silly escape sequence wrapper Author: Jimmy Kumpulainen [email protected]

Available modes:

  • Reset (Default)
  • Bright
  • Dim
  • Underline
  • Blink
  • Reverse
  • Hidden

Available colors:

  • Black
  • Red
  • Green
  • Yellow
  • Blue
  • Magenta
  • Cyan
  • White

Example:

!/usr/bin/env python

import escc as tc

tc.textcolor(bg="BLUE", fgmode="BLINK", fg="GREEN")
print("This is just another sample string")
tc.reset()

In a perfect world this would print the sample string in green with a blue background, and make the text blink, then reset the output to normal.

Feel free to use and abuse it!

Previous:gmaps_codejam