diff options
author | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-01-05 21:54:06 -0500 |
---|---|---|
committer | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-01-05 21:54:06 -0500 |
commit | 8f446eb5413cc318f0f6dcaa233d5bced84827a0 (patch) | |
tree | d986a74e5c59c1af230c189b7fcf2f07e5164905 /lib | |
parent | 20da8c9400213a72cc99ffa4899e7a90cdd341bc (diff) | |
download | Nim-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')
-rw-r--r-- | lib/pure/unittest.nim | 2 |
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) |