Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.22 KB

File metadata and controls

34 lines (22 loc) · 1.22 KB

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.