summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorFlaviu Tamas <tamasflaviu@gmail.com>2015-01-05 21:54:06 -0500
committerFlaviu Tamas <tamasflaviu@gmail.com>2015-01-05 21:54:06 -0500
commit8f446eb5413cc318f0f6dcaa233d5bced84827a0 (patch)
treed986a74e5c59c1af230c189b7fcf2f07e5164905 /lib/pure
parent20da8c9400213a72cc99ffa4899e7a90cdd341bc (diff)
downloadNim-8f446eb5413cc318f0f6dcaa233d5bced84827a0.tar.gz
Properly use the terminal module
The documentation for terminal says

> Changing the style is permanent even after program termination! Use the code
> `system.addQuitProc(resetAttributes)` to restore the defaults.
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/unittest.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/unittest.nim b/lib/pure/unittest.nim
index 21efea3bc..77b23b067 100644
--- a/lib/pure/unittest.nim
+++ b/lib/pure/unittest.nim
@@ -209,3 +209,5 @@ if envOutLvl.len > 0:
     if $opt == envOutLvl:
       outputLevel = opt
       break
+
+system.addQuitProc(resetAttributes)