Debian Codegraph @

README.md

raw symbols SCIP
1 ## Terminal ##
2 Terminal is a simple golang package that provides basic terminal handling.
3
4 Terminal wraps color/format functions provided by [ANSI escape code](http://en.wikipedia.org/wiki/ANSI_escape_code)
5
6 ## Usage ##
7 ```go
8 package main
9
10 import (
11 "github.com/wsxiaoys/terminal"
12 "github.com/wsxiaoys/terminal/color"
13 )
14
15 func main() {
16 terminal.Stdout.Color("y").
17 Print("Hello world").Nl().
18 Reset().
19 Colorf("@{kW}Hello world\n")
20
21 color.Print("@rHello world")
22 }
23 ```
24 Check the [godoc result](https://godoc.org/github.com/wsxiaoys/terminal) for more details.