Change default term colors to cDefault (don't assume white/black).

This commit is contained in:
2026-03-09 13:29:22 -05:00
parent b4710e7070
commit 8e381d15d0
2 changed files with 2 additions and 2 deletions

View File

@@ -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