All Projects → rivo → Tview

rivo / Tview

Licence: mit
Terminal UI library with rich, interactive widgets — written in Golang

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Tview

Ftxui
💻 C++ Functional Terminal User Interface. ❤️
Stars: ✭ 433 (-93.09%)
Mutual labels:  terminal-based, user-interface
resto
🔗 a CLI app can send pretty HTTP & API requests with TUI
Stars: ✭ 113 (-98.2%)
Mutual labels:  user-interface, terminal-based
Httpu
The terminal-first http client
Stars: ✭ 619 (-90.12%)
Mutual labels:  terminal-based, user-interface
Espui
A simple web user interface library for ESP32 and ESP8266
Stars: ✭ 330 (-94.73%)
Mutual labels:  user-interface
Md2man
📚 Converts markdown into UNIX manual pages
Stars: ✭ 337 (-94.62%)
Mutual labels:  terminal-based
Stonks
Stonks is a terminal based stock visualizer and tracker that displays realtime stocks in graph format in a terminal. See how fast your stonks will crash.
Stars: ✭ 405 (-93.54%)
Mutual labels:  terminal-based
Ofxdatgui
Simple to use, fully customizable, high-resolution graphical user interface for openFrameworks
Stars: ✭ 395 (-93.7%)
Mutual labels:  user-interface
Geonbit.ui
UI system for MonoGame projects.
Stars: ✭ 310 (-95.05%)
Mutual labels:  user-interface
Grv
GRV is a terminal interface for viewing git repositories
Stars: ✭ 3,820 (-39.04%)
Mutual labels:  terminal-based
Py cui
A python library for intuitively creating CUI/TUI interfaces with widgets, inspired by gocui.
Stars: ✭ 380 (-93.94%)
Mutual labels:  terminal-based
Dstask
Single binary terminal-based TODO manager with git-based sync + markdown notes per task
Stars: ✭ 431 (-93.12%)
Mutual labels:  terminal-based
Tsukae
🧑‍💻📊 Show off your most used shell commands
Stars: ✭ 345 (-94.49%)
Mutual labels:  terminal-based
Elm Mdc
Elm port of the Material Components for the Web CSS/JS library
Stars: ✭ 338 (-94.61%)
Mutual labels:  user-interface
Pangolin desktop
Pangolin Desktop UI shell, designed for dahliaOS, written in Flutter.
Stars: ✭ 408 (-93.49%)
Mutual labels:  user-interface
Ui Interactions
Open source click and copy user interface interactions.
Stars: ✭ 331 (-94.72%)
Mutual labels:  user-interface
Macroid
A modular functional UI language for Android
Stars: ✭ 537 (-91.43%)
Mutual labels:  user-interface
Grav Plugin Admin
Grav Admin Plugin
Stars: ✭ 316 (-94.96%)
Mutual labels:  user-interface
Rtorrent Ps
🎨 Extended rTorrent distribution with a fully customizable canvas and colors, other feature additions, and complete docs.
Stars: ✭ 359 (-94.27%)
Mutual labels:  user-interface
Jsonui
jsonui is an interactive JSON explorer on your command line
Stars: ✭ 583 (-90.7%)
Mutual labels:  terminal-based
Xamarin.forms
Xamarin.Forms Official Home
Stars: ✭ 5,485 (-12.46%)
Mutual labels:  user-interface

Rich Interactive Widgets for Terminal UIs

PkgGoDev Go Report

This Go package provides commonly needed components for terminal based user interfaces.

Screenshot

Among these components are:

  • Input forms (include input/password fields, drop-down selections, checkboxes, and buttons)
  • Navigable multi-color text views
  • Sophisticated navigable table views
  • Flexible tree views
  • Selectable lists
  • Grid, Flexbox and page layouts
  • Modal message windows
  • An application wrapper

They come with lots of customization options and can be easily extended to fit your needs.

Installation

go get github.com/rivo/tview

Hello World

This basic example creates a box titled "Hello, World!" and displays it in your terminal:

package main

import (
	"github.com/rivo/tview"
)

func main() {
	box := tview.NewBox().SetBorder(true).SetTitle("Hello, world!")
	if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil {
		panic(err)
	}
}

Check out the GitHub Wiki for more examples along with screenshots. Or try the examples in the "demos" subdirectory.

For a presentation highlighting this package, compile and run the program found in the "demos/presentation" subdirectory.

Projects using tview

Documentation

Refer to https://pkg.go.dev/github.com/rivo/tview for the package's documentation. Also check out the Wiki.

Dependencies

This package is based on github.com/gdamore/tcell (and its dependencies) as well as on github.com/rivo/uniseg.

Versioning and Backwards-Compatibility

I try really hard to keep this project backwards compatible. Your software should not break when you upgrade tview. But this also means that some of its shortcomings that were present in the initial versions will remain. In addition, at least for the time being, you won't find any version tags in this repo. The newest version should be the one to upgrade to. It has all the bugfixes and latest features. Having said that, backwards compatibility may still break when:

  • a new version of an imported package (most likely tcell) changes in such a way that forces me to make changes in tview as well,
  • I fix something that I consider a bug, rather than a feature, something that does not work as originally intended,
  • I make changes to "internal" interfaces such as Primitive. You shouldn't need these interfaces unless you're writing your own primitives for tview. (Yes, I realize these are public interfaces. This has advantages as well as disadvantages. For the time being, it is what it is.)

Your Feedback

Add your issue here on GitHub. Feel free to get in touch if you have any questions.

Code of Conduct

We follow Golang's Code of Conduct which you can find here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].