all repos — nifty @ 2b4d5b4ec187b728e71a16e67781b3fb002a34c4

A tiny (pseudo) package manager and script runner.

Prevents ansi reset code output on exit when not an interactable terminal
inivekin inivekin
Fri, 16 Jun 2023 06:31:22 +0800
commit

2b4d5b4ec187b728e71a16e67781b3fb002a34c4

parent

64310417eb1c135c0c196e77498eaf2079e5cc46

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/niftypkg/niftylogger.nimsrc/niftypkg/niftylogger.nim

@@ -4,7 +4,8 @@ strutils,

terminal, std/exitprocs -addExitProc(resetAttributes) +if isatty(stdin): + addExitProc(resetAttributes) type NiftyLogger* = ref object of Logger