more modules updated

This commit is contained in:
Araq 2014-08-28 01:54:36 +02:00
commit e12f9518cc
3 changed files with 62 additions and 62 deletions

View file

@ -216,7 +216,7 @@ when not defined(windows):
gFG = 0
gBG = 0
proc setStyle*(style: set[TStyle]) =
proc setStyle*(style: set[Style]) =
## sets the terminal style
when defined(windows):
var a = 0'i16
@ -229,7 +229,7 @@ proc setStyle*(style: set[TStyle]) =
for s in items(style):
stdout.write("\e[" & $ord(s) & 'm')
proc writeStyled*(txt: string, style: set[TStyle] = {styleBright}) =
proc writeStyled*(txt: string, style: set[Style] = {styleBright}) =
## writes the text `txt` in a given `style`.
when defined(windows):
var old = getAttributes()