Change default term colors to cDefault (don't assume white/black).
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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