Termview is a terminal component which is designed to work with Bubble Tea v2. It embeds a real shell session in your app using the same model/update/view pattern as other Charm Bracelet components.
This demo represents routing PTY I/O into x/vt emulators, rendering with bubbletea library.
go get github.com/grafviktor/termview@v0.1.0import "github.com/grafviktor/termview"
...
term, err := termview.New(
termview.WithCommand("/bin/bash"),
termview.WithInitialWidth(80),
termview.WithInitialHeight(24),
)Also see terminal-simple and terminal-multiplexer for the examples.
MIT - see LICENSE.
