more modules updated
This commit is contained in:
parent
e07b833439
commit
e12f9518cc
3 changed files with 62 additions and 62 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue