From 8f446eb5413cc318f0f6dcaa233d5bced84827a0 Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Mon, 5 Jan 2015 21:54:06 -0500 Subject: 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. --- lib/pure/unittest.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/pure') 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) -- cgit 1.4.1-2-gfad0