Skip to content

Instantly share code, notes, and snippets.

View suroegin's full-sized avatar

Ivan Suroegin suroegin

  • Performics Russia (Publicis Groupe)
  • Moscow, Russia
View GitHub Profile
@suroegin
suroegin / colors.py
Last active September 14, 2018 12:39 — forked from jossef/colors.py
python coloring for linux, based on this answer http://stackoverflow.com/a/26445590/3191896
def color(text, **user_styles):
styles = {
# styles
'reset': '\033[0m',
'bold': '\033[01m',
'disabled': '\033[02m',
'underline': '\033[04m',
'reverse': '\033[07m',
'strike_through': '\033[09m',