Go binding to libvterm
vt := vterm.New(25, 80)
defer vt.Close()
vt.SetUTF8(true)
screen := vt.ObtainScreen()
screen.Reset(true)
_, err := vt.Write([]byte("\033[31mHello \033[32mGolang\033[0m"))
if err != nil {
log.Fatal(err)
}
screen.Flush()
cell, err := screen.GetCellAt(0, 0)
libvterm: must be installed with pkg-config
$ go get github.com/mattn/go-libvterm
MIT
Yasuhiro Matsumoto (a.k.a. mattn)