~mna/zzcsi

ref: 5d506636cf79d6d6fc3388b4cc5c815920bb7a45 zzcsi/example_test.go -rw-r--r-- 434 bytes
5d506636Martin Angers rename to zzcsi 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package zzcsi_test

import (
	"fmt"

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

func ExampleCSI_FuncString() {
	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)
}