Profpatsch / users / Profpatsch / avt-go
- ../
- cmd/smoke/main.go 3 months ago
- parser/ 50.3 KiB · 3 files 3 months ago
- terminal/ 90.0 KiB · 3 dirs, 10 files 3 months ago
- types/types.go 3 months ago
- util/util.go 3 months ago
- LICENSE 11.1 KiB 3 months ago
- NOTICE 350 B 3 months ago
- README.md 677 B 3 months ago
- cell.go 358 B 3 months ago
- charset.go 152 B 3 months ago
- color.go 131 B 3 months ago
- default.nix 416 B 3 months ago
- go.mod 58 B 3 months ago
- go.sum 155 B 3 months ago
- line.go 137 B 3 months ago
- pen.go 274 B 3 months ago
- tabs.go 119 B 3 months ago
- vt.go 3.2 KiB 3 months ago
avt-go
A Go transliteration of avt by Marcin Kulik, a virtual terminal emulator library licensed under Apache-2.0. It parses ANSI/VT escape sequences and maintains a virtual screen buffer with cursor, scrollback, and alternate screen support.
This port exists so Go projects like git-blimey can use terminal emulation
without FFI into the Rust crate. The public API mirrors avt closely — create a
Vt, feed it bytes with FeedStr, and inspect the result via View(),
Cursor(), Text(), or Dump() to serialise and restore state.
vt := avt.New(80, 24)
vt.FeedStr("\x1b[31mhello\x1b[0m world")
fmt.Println(vt.Text())