Change default term colors to cDefault (don't assume white/black).
This commit is contained in:
@@ -109,7 +109,7 @@ func ansiEscSeq*(fg: TerminalColors, bg: TerminalColors, style: set[TerminalStyl
|
||||
result &= $(int(fg) + 30) & ";" & $(int(bg) + 40) & "m"
|
||||
|
||||
|
||||
func termFmt*(text: string, fg = cWhite, bg = cBlack, style: set[TerminalStyle] = {}): string =
|
||||
func termFmt*(text: string, fg = cDefault, bg = cDefault, style: set[TerminalStyle] = {}): string =
|
||||
return ansiEscSeq(fg, bg, style) & text & RESET_FORMATTING
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user