tsm/src/term.nim

19 lines
386 B
Nim
Raw Normal View History

import std/strutils
2024-09-19 17:49:14 -05:00
import hwylterm
export hwylterm
const
sep = " [magenta]|[/] "
prefix = "[cyan]tsm[/]" & sep
errPrefix = prefix & "[red]error[/]" & sep
proc termEcho*(x: varargs[string, `$`]) =
bbEcho prefix, x.join(" ")
proc termError*(x: varargs[string, `$`]) =
bbEcho errPrefix, x.join(" ")
proc termQuit*(x: varargs[string, `$`]) =
termError x
quit QuitFailure