feat: initial commit
This commit is contained in:
commit
a161b86c9a
705 changed files with 288162 additions and 0 deletions
31
vendor/github.com/muesli/ansi/README.md
generated
vendored
Normal file
31
vendor/github.com/muesli/ansi/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# ansi
|
||||
|
||||
[](https://github.com/muesli/ansi/releases)
|
||||
[](https://github.com/muesli/ansi/actions)
|
||||
[](https://coveralls.io/github/muesli/ansi?branch=master)
|
||||
[](https://goreportcard.com/report/muesli/ansi)
|
||||
[](https://pkg.go.dev/github.com/muesli/ansi)
|
||||
|
||||
Raw ANSI sequence helpers
|
||||
|
||||
## ANSI Writer
|
||||
|
||||
```go
|
||||
import "github.com/muesli/ansi"
|
||||
|
||||
w := ansi.Writer{Forward: os.Stdout}
|
||||
w.Write([]byte("\x1b[31mHello, world!\x1b[0m"))
|
||||
w.Close()
|
||||
```
|
||||
|
||||
## Compressor
|
||||
|
||||
The ANSI compressor eliminates unnecessary/redundant ANSI sequences.
|
||||
|
||||
```go
|
||||
import "github.com/muesli/ansi/compressor"
|
||||
|
||||
w := compressor.Writer{Forward: os.Stdout}
|
||||
w.Write([]byte("\x1b[31mHello, world!\x1b[0m"))
|
||||
w.Close()
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue