Skip to content
Permalink
Browse files

Support NO_COLOR to default plain to false.

  • Loading branch information
c-blake committed Nov 18, 2019
1 parent e4276db commit 7d19fc184f8c29481dd5a4c4d5d26c671c2c0a4c
Showing with 2 additions and 1 deletion.
  1. +2 −1 procs.nim
@@ -674,7 +674,8 @@ type
kslot: CritBitTree[tuple[slot:uint8, pfs:ProcFields, dim:int]] #for filters
kslotNm: seq[string] #Inverse of above

let dd = DpCf(header: true, indent: 3, #display defaults
proc c_getenv(env: cstring): cstring {.importc: "getenv", header: "<stdlib.h>".}
let dd = DpCf(header: true, indent: 3, plain: (c_getenv("NO_COLOR") != nil),
delay: Timespec(tv_sec: (-1).Time))
var cg: ptr DpCf #Lazy way out of making many little procs take DpCf
var cmpsG: ptr seq[Cmp]

0 comments on commit 7d19fc1

Please sign in to comment.
You can’t perform that action at this time.