https://github.com/mattn/go-libvterm
Go binding for libvterm
https://github.com/mattn/go-libvterm
go golang libvterm
Last synced: about 1 year ago
JSON representation
Go binding for libvterm
- Host: GitHub
- URL: https://github.com/mattn/go-libvterm
- Owner: mattn
- Created: 2018-06-07T04:11:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-18T00:23:28.000Z (over 4 years ago)
- Last Synced: 2025-05-03T16:11:33.029Z (about 1 year ago)
- Topics: go, golang, libvterm
- Language: Go
- Homepage:
- Size: 95.7 KB
- Stars: 26
- Watchers: 5
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-libvterm
Go binding to libvterm
## Usage
```go
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)
```
## Requirements
libvterm: must be installed with pkg-config
## Installation
```
$ go get github.com/mattn/go-libvterm
```
## License
MIT
## Author
Yasuhiro Matsumoto (a.k.a. mattn)