Prevents ansi reset code output on exit when not an interactable terminal
inivekin inivekin
Fri, 16 Jun 2023 06:33:05 +0800
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
nimline.nim
→
nimline.nim
@@ -37,7 +37,8 @@ strutils,
std/exitprocs, os -addExitProc(resetAttributes) +if isatty(stdin): + addExitProc(resetAttributes) when defined(windows): proc putchr*(c: cint): cint {.discardable, header: "<conio.h>", importc: "_putch".}