Skip to content

grafviktor/termview

Repository files navigation

Termview - TUI terminal component for Go

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.

License

1. Functional demo

This demo represents routing PTY I/O into x/vt emulators, rendering with bubbletea library.

Two-pane terminal multiplexer demo with focus switching and horizontal/vertical layout toggle

2. Installation and usage

go get github.com/grafviktor/termview@v0.1.0
import "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.

3. License

MIT - see LICENSE.

About

A terminal component for Bubble Tea v2 TUI framework.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages