Project

General

Profile

1
# Exception handling
2

    
3
csi = '\x1B['
4

    
5
def set_style(style): return csi+style+'m'
6

    
7
reset_style = set_style('0')
8

    
9
def as_style(style, text): return set_style(style)+text+reset_style
(7-7/11)