vcom/vendor/github.com/muesli/ansi
2026-04-23 00:21:36 +03:00
..
compressor Add packaging and release automation 2026-04-23 00:21:36 +03:00
.gitignore Add packaging and release automation 2026-04-23 00:21:36 +03:00
.golangci.yml Add packaging and release automation 2026-04-23 00:21:36 +03:00
ansi.go Add packaging and release automation 2026-04-23 00:21:36 +03:00
buffer.go Add packaging and release automation 2026-04-23 00:21:36 +03:00
LICENSE Add packaging and release automation 2026-04-23 00:21:36 +03:00
README.md Add packaging and release automation 2026-04-23 00:21:36 +03:00
writer.go Add packaging and release automation 2026-04-23 00:21:36 +03:00

ansi

Latest Release Build Status Coverage Status Go ReportCard GoDoc

Raw ANSI sequence helpers

ANSI Writer

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.

import "github.com/muesli/ansi/compressor"

w := compressor.Writer{Forward: os.Stdout}
w.Write([]byte("\x1b[31mHello, world!\x1b[0m"))
w.Close()