https://github.com/shelepuginivan/gotk3-vte
Go bindings for VTE
https://github.com/shelepuginivan/gotk3-vte
bindings go golang gotk3 gtk gtk3 vte
Last synced: about 2 months ago
JSON representation
Go bindings for VTE
- Host: GitHub
- URL: https://github.com/shelepuginivan/gotk3-vte
- Owner: shelepuginivan
- License: mit
- Created: 2025-08-10T03:02:02.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-17T13:15:49.000Z (10 months ago)
- Last Synced: 2025-09-10T01:58:57.522Z (9 months ago)
- Topics: bindings, go, golang, gotk3, gtk, gtk3, vte
- Language: Go
- Homepage: https://pkg.go.dev/github.com/shelepuginivan/gotk3-vte/vte
- Size: 218 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gotk3-vte
[](https://pkg.go.dev/github.com/shelepuginivan/gotk3-vte/vte)
[](https://goreportcard.com/report/github.com/shelepuginivan/gotk3-vte)
[](https://github.com/shelepuginivan/gotk3-vte/blob/main/LICENSE)
Package `gotk3-vte` provides [gotk3](https://github.com/gotk3/gotk3)-compatible
bindings for [VTE](https://gitlab.gnome.org/GNOME/vte).
Most of the library API is implemented, except for deprecated features. Some
parts of the API is modified to be more idiomatic.
## Installation
```sh
go get -u github.com/shelepuginivan/gotk3-vte
```
## Example usage
```go
package main
import (
"log"
"github.com/gotk3/gotk3/gtk"
"github.com/shelepuginivan/gotk3-vte/vte"
)
func main() {
gtk.Init(nil)
win, err := gtk.WindowNew(gtk.WINDOW_TOPLEVEL)
if err != nil {
log.Fatal(err)
}
term, err := vte.TerminalNew()
if err != nil {
log.Fatal(err)
}
cmd := vte.CommandNew([]string{"/usr/bin/bash"})
term.Spawn(cmd)
term.Connect("child-exited", gtk.MainQuit)
win.Add(term)
win.ShowAll()
win.Connect("destroy", gtk.MainQuit)
gtk.Main()
}
```
## Documentation
See [examples](./examples) and
[API reference](https://pkg.go.dev/github.com/shelepuginivan/gotk3-vte)
## License
[MIT](./LICENSE).