README ¶ lterm lterm is a basic terminal color package for go. Example bg := lterm.Bg8(240) fg1 := lterm.Fg8(235) fg2 := lterm.Fg8(228) lterm.Printline(bg, " test", fg1, " foo ", fg2, "bar ", lterm.Reset) Expand ▾ Collapse ▴ Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ Constants func Bg8(col int) string func ClearLine(opt int) string func Fg4(col int) string func Fg8(col int) string func GetWidth() int func Printline(text ...interface{}) func Write(text ...interface{}) Constants ¶ View Source const ( Reset = "\033[0m" Bold = "\033[01m" Disable = "\033[02m" Underline = "\033[04m" Reverse = "\033[07m" Strikethrough = "\033[09m" Invisible = "\033[08m" ) Variables ¶ This section is empty. Functions ¶ func Bg8 ¶ func Bg8(col int) string func ClearLine ¶ func ClearLine(opt int) string func Fg4 ¶ func Fg4(col int) string func Fg8 ¶ func Fg8(col int) string func GetWidth ¶ func GetWidth() int func Printline ¶ func Printline(text ...interface{}) func Write ¶ func Write(text ...interface{}) Types ¶ This section is empty. Source Files ¶ View all Source files lterm.go Click to show internal directories. Click to hide internal directories.