BUGFIX: correct code in 256 colors mode
Thanks duck typing.
This commit is contained in:
parent
119bba5bb5
commit
811ef56bcb
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ def colorin( text, color = "red", style = "normal" ):
|
|||
mode = 256
|
||||
color_nb = int( color )
|
||||
assert( 0 <= color_nb <= 255 )
|
||||
color_code = str( color )
|
||||
color_code = str( color_nb )
|
||||
|
||||
return start + style_code + endmarks[mode] + color_code + "m" + text + stop
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue