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 38dc125162
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# Package
version = "0.11.0"
version = "0.11.1"
author = "Jonathan Bernard"
description = "Helper functions for writing command line interfaces."
license = "MIT"

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