Debian Codegraph @

/

debian golang-github-wsxiaoys-terminal 0.0~git20160513.0.0940f3f-2debian golang-github-wsxiaoys-terminal-dev debiangogoinimakefilemarkdownshellyaml 14 files · 51 symbols
README (full)

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.

dir color/
dir debian/
dir example/
file LICENSE
file README.md
file terminal.go