1 Commits

2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# Package # Package
version = "0.11.0" version = "0.11.1"
author = "Jonathan Bernard" author = "Jonathan Bernard"
description = "Helper functions for writing command line interfaces." description = "Helper functions for writing command line interfaces."
license = "MIT" 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" 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 return ansiEscSeq(fg, bg, style) & text & RESET_FORMATTING