lterm

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 3 Imported by: 3

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)

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳