Colorful terminal output for Golang
Go
Switch branches/tags
Nothing to show
Latest commit 0940f3f May 13, 2016 @wsxiaoys Merge pull request #10 from obr/master
Added support for high intensity foreground.

README.md

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.