~mna/zzcsi

5d506636cf79d6d6fc3388b4cc5c815920bb7a45 — Martin Angers 1 year, 1 month ago 773d5a4
rename to zzcsi
7 files changed, 19 insertions(+), 23 deletions(-)

M README.md
M csi.go
M csi_test.go
M doc.go
M example_test.go
M go.mod
M go.sum
M README.md => README.md +8 -8
@@ 1,10 1,10 @@
# zztermcsi [![builds.sr.ht status](https://builds.sr.ht/~mna/zztermcsi.svg)](https://builds.sr.ht/~mna/zztermcsi?) [![GoDoc](https://godoc.org/git.sr.ht/~mna/zztermcsi?status.svg)](http://godoc.org/git.sr.ht/~mna/zztermcsi) [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/git.sr.ht/~mna/zztermcsi)
# zzcsi [![builds.sr.ht status](https://builds.sr.ht/~mna/zzcsi.svg)](https://builds.sr.ht/~mna/zzcsi?) [![GoDoc](https://godoc.org/git.sr.ht/~mna/zzcsi?status.svg)](http://godoc.org/git.sr.ht/~mna/zzcsi) [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/git.sr.ht/~mna/zzcsi)

* Canonical repository: https://git.sr.ht/~mna/zztermcsi
* Issues: https://todo.sr.ht/~mna/zztermcsi
* Builds: https://builds.sr.ht/~mna/zztermcsi
* Canonical repository: https://git.sr.ht/~mna/zzcsi
* Issues: https://todo.sr.ht/~mna/zzcsi
* Builds: https://builds.sr.ht/~mna/zzcsi

Package zztermcsi implements the Control Sequence Introducer (CSI) functions
Package zzcsi implements the Control Sequence Introducer (CSI) functions
supported by Xterm-compatible terminals. The most commonly used functions are
to erase a line or the screen, manipulate the cursor or set the display
attributes such as foreground and background colors, bold or italics, but many


@@ 35,7 35,7 @@ BenchmarkCSI/AppendFunc-4   20808049    58.40 ns/op        0 B/op   0 allocs/op
The [BSD 3-Clause license][bsd].

[bsd]: http://opensource.org/licenses/BSD-3-Clause
[godoc]: http://godoc.org/git.sr.ht/~mna/zztermcsi
[pgd]: https://pkg.go.dev/git.sr.ht/~mna/zztermcsi
[godoc]: http://godoc.org/git.sr.ht/~mna/zzcsi
[pgd]: https://pkg.go.dev/git.sr.ht/~mna/zzcsi
[xterm]: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_
[zzt]: https://git.sr.ht/~mna/?search=zzterm
[zzt]: https://git.sr.ht/~mna/?search=zz

M csi.go => csi.go +1 -1
@@ 1,4 1,4 @@
package zztermcsi
package zzcsi

import (
	"bytes"

M csi_test.go => csi_test.go +1 -1
@@ 1,4 1,4 @@
package zztermcsi
package zzcsi

import (
	"strings"

M doc.go => doc.go +2 -2
@@ 1,4 1,4 @@
// Package zztermcsi implements functions for the execution of Control Sequence
// Package zzcsi implements functions for the execution of Control Sequence
// Introducer (CSI) sequences on xterm-compatible terminals. The complete
// documentation of CSI functions is available at [1].
//


@@ 15,4 15,4 @@
//
//     [1]: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Functions-using-CSI-_-ordered-by-the-final-character_s_
//
package zztermcsi // import "git.sr.ht/~mna/zztermcsi"
package zzcsi // import "git.sr.ht/~mna/zzcsi"

M example_test.go => example_test.go +6 -6
@@ 1,15 1,15 @@
package zztermcsi_test
package zzcsi_test

import (
	"fmt"

	"git.sr.ht/~mna/zztermcsi"
	"git.sr.ht/~mna/zzcsi"
)

func ExampleCSI_FuncString() {
	bold := zztermcsi.ChAttr.FuncString(zztermcsi.ChAttrBold)
	norm := zztermcsi.ChAttr.FuncString(zztermcsi.ChAttrNoBoldDim)
	blueBlink := zztermcsi.ChAttr.FuncString(zztermcsi.ChAttrFgBlue, zztermcsi.ChAttrBlink)
	defNoBlink := zztermcsi.ChAttr.FuncString(zztermcsi.ChAttrFgDef, zztermcsi.ChAttrNoBlink)
	bold := zzcsi.ChAttr.FuncString(zzcsi.ChAttrBold)
	norm := zzcsi.ChAttr.FuncString(zzcsi.ChAttrNoBoldDim)
	blueBlink := zzcsi.ChAttr.FuncString(zzcsi.ChAttrFgBlue, zzcsi.ChAttrBlink)
	defNoBlink := zzcsi.ChAttr.FuncString(zzcsi.ChAttrFgDef, zzcsi.ChAttrNoBlink)
	fmt.Printf("%sHello%s, %sworld!%s\n", bold, norm, blueBlink, defNoBlink)
}

M go.mod => go.mod +1 -3
@@ 1,5 1,3 @@
module git.sr.ht/~mna/zztermcsi
module git.sr.ht/~mna/zzcsi

go 1.14

require github.com/golang/example v0.0.0-20170904185048-46695d81d1fa

M go.sum => go.sum +0 -2
@@ 1,2 0,0 @@
github.com/golang/example v0.0.0-20170904185048-46695d81d1fa h1:iqCQC2Z53KkwGgTN9szyL4q0OQHmuNjeoNnMT6lk66k=
github.com/golang/example v0.0.0-20170904185048-46695d81d1fa/go.mod h1:tO/5UvQ/uKigUjQBPqzstj6uxd3fUIjddi19DxGJeWg=