[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1001304: ITP: golang-github-muesli-ansi -- raw ANSI sequence helpers for Go



Package: wnpp
Severity: wishlist
Owner: Anthony Fok <foka@debian.org>

* Package name    : golang-github-muesli-ansi
  Version         : 0.0~git20211031.c9f0611-1
  Upstream Author : Christian Muehlhaeuser
* URL             : https://github.com/muesli/ansi
* License         : Expat
  Programming Lang: Go
  Description     : raw ANSI sequence helpers for Go

 Package ansi provides raw ANSI sequence helpers for Go.
 .
 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()


Reason for packaging:
 Prerequisite for golang-github-charmbracelet-bubbletea
 @ https://github.com/charmbracelet/bubbletea


Reply to: