|
|
2 년 전 | |
|---|---|---|
| .. | ||
| compressor | 2 년 전 | |
| .gitignore | 2 년 전 | |
| .golangci.yml | 2 년 전 | |
| LICENSE | 2 년 전 | |
| README.md | 2 년 전 | |
| ansi.go | 2 년 전 | |
| buffer.go | 2 년 전 | |
| writer.go | 2 년 전 | |
Raw ANSI sequence helpers
import "github.com/muesli/ansi"
w := ansi.Writer{Forward: os.Stdout}
w.Write([]byte("\x1b[31mHello, world!\x1b[0m"))
w.Close()
The ANSI compressor eliminates unnecessary/redundant ANSI sequences.
import "github.com/muesli/ansi/compressor"
w := compressor.Writer{Forward: os.Stdout}
w.Write([]byte("\x1b[31mHello, world!\x1b[0m"))
w.Close()