8000 GitHub - jkellerer/terminal: Colorful terminal output for Golang
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jkellerer/terminal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal

Terminal is a simple golang package that provides basic terminal handling.

Terminal wraps color/format functions provided by ANSI escape code

Usage

package main

import (
  "github.com/wsxiaoys/terminal"
  "github.com/wsxiaoys/terminal/color"
)

func main() {
  terminal.Stdout.Color("y").
    Print("Hello world").Nl().
    Reset().
    Colorf("@{kW}Hello world\n")

  color.Print("@rHello world")
}

Check the godoc result for more details.

About

Colorful terminal output for Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0