GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vito/tuist: Component-based line-diffing TUI framework

BranchesTags
Open more actions menu

Latest commit

 

History

259 Commits
259 Commits

Folders and files

NameName
Last commit message
Last commit date
cmd/tuist-frames
cmd/tuist-frames
 
 
debugui
debugui
 
 
demos
demos
 
 
docs
docs
 
 
teav1
teav1
 
 
teav2
teav2
 
 
vt
vt
 
 
.nojekyll
.nojekyll
 
 
AGENTS.md
AGENTS.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
completion.go
completion.go
 
 
completion_example_test.go
completion_example_test.go
 
 
completion_test.go
completion_test.go
 
 
component.go
component.go
 
 
dagger.json
dagger.json
 
 
dagger.lock
dagger.lock
 
 
dagger.toml
dagger.toml
 
 
example_test.go
example_test.go
 
 
focus_defer_test.go
focus_defer_test.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
headless.go
headless.go
 
 
headless_test.go
headless_test.go
 
 
overlay.go
overlay.go
 
 
remount_test.go
remount_test.go
 
 
rowsplit_test.go
rowsplit_test.go
 
 
spinner.go
spinner.go
 
 
terminal.go
terminal.go
 
 
terminal_darwin.go
terminal_darwin.go
 
 
terminal_linux.go
terminal_linux.go
 
 
terminal_unix.go
terminal_unix.go
 
 
terminal_windows.go
terminal_windows.go
 
 
textinput.go
textinput.go
 
 
textinput_focus_test.go
textinput_focus_test.go
 
 
textinput_highlight_test.go
textinput_highlight_test.go
 
 
textinput_wrap_test.go
textinput_wrap_test.go
 
 
tui.go
tui.go
 
 
tui_test.go
tui_test.go
 
 
width.go
width.go
 
 

Repository files navigation

README

A high-performance TUI framework for Go.

go get github.com/vito/tuist@latest

demos

# interactive selector
$ go run github.com/vito/tuist/demos@latest

# or run one directly
$ go run github.com/vito/tuist/demos@latest keygen   # mandelbrot fractal, inline editors
$ go run github.com/vito/tuist/demos@latest grid     # mouse hover/click grid, keyboard nav
$ go run github.com/vito/tuist/demos@latest logs     # scrollback stress test, overlays, spinner

the idea

  • Everything is a component, embedding tui.Compo
  • Components have lifecycle hooks (OnMount, OnDismount)
  • Components can be hovered and focused (SetHovered, SetFocused)
  • Components are fully interactive (HandleKeyPress, HandlePaste, HandleMouse)
  • Components render to lines of text and can optionally control the cursor position
  • Component renders are cached, and only re-render when Compo.Update is called
  • Output is diffed against previous frame and only changed lines are repainted
  • If content changes off-screen, a full (synchronized) repaint is required (trade-off)

inspiration

  • Go-app - component system, lifecycle hooks, UI goroutine model
  • pi-tui - the approach for repaintable scrollback; this project started as a straight-up conversion.
  • BubbleZone - for the mouse region markers trick
  • Bubbletea - a great TUI framework, I just needed a different model. This project leverages various components from its ecosystem (Lipgloss, Ultraviolet).

ai usage

Used LLMs heavily. It wrote the commits, I write the docs.

About

Component-based line-diffing TUI framework

Resources

Readme
Apache-2.0 license
Activity

Stars

5 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.