Prevents ansi reset code output on exit when not an interactable terminal
inivekin inivekin
Fri, 16 Jun 2023 06:31:22 +0800
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/niftypkg/niftylogger.nim
→
src/niftypkg/niftylogger.nim
@@ -4,7 +4,8 @@ strutils,
terminal, std/exitprocs -addExitProc(resetAttributes) +if isatty(stdin): + addExitProc(resetAttributes) type NiftyLogger* = ref object of Logger