summary refs log tree commit diff stats
path: root/lib/pure/terminal.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure/terminal.nim')
-rwxr-xr-xlib/pure/terminal.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/terminal.nim b/lib/pure/terminal.nim
index 0fd631eed..20eaa4d36 100755
--- a/lib/pure/terminal.nim
+++ b/lib/pure/terminal.nim
@@ -224,7 +224,7 @@ proc setStyle*(style: set[TStyle]) =
     if styleBlink in style: a = a or int16(BACKGROUND_INTENSITY)

     if styleReverse in style: a = a or 0x4000'i16 # COMMON_LVB_REVERSE_VIDEO

     if styleUnderscore in style: a = a or 0x8000'i16 # COMMON_LVB_UNDERSCORE

-    discard SetConsoleTextAttribute(conHandle, old or a)

+    discard SetConsoleTextAttribute(conHandle, a)

   else:

     for s in items(style):

       stdout.write("\e[" & $ord(s) & 'm')