Skip to content
/ term Public

Output text to the console with ANSI colors and styles in [Go, Golang]

License

Notifications You must be signed in to change notification settings

dmantilla/term

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

term

Simple package to print text on the console with ANSI colors and styles.

Installation

$ go get github.com/dmantilla/term

Usage

package main

import (
	"github.com/dmantilla/term"
	"fmt"
)

func main() {
	term.Blue("Blue on White Blinking").OnWhite().Blinking().Println()
	
	term.Green("Green on Black Underlined").OnBlack().Underlined().Print()
	term.Yellow(" and Yellow text").Println()
	
	fmt.Println(term.White("White on blue").OnBlue().Raw())
	fmt.Println(term.Default("Default Text").Raw())
	fmt.Println(term.Default("Default text on Red").OnRed().Raw())
	fmt.Println(term.Yellow("Yellow on Cyan Underlined").OnCyan().Underlined().Raw())
	
}    

About

Output text to the console with ANSI colors and styles in [Go, Golang]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published