• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

demos/H03-May-2022-1,9211,583

CODE_OF_CONDUCT.mdH A D04-Dec-20203.2 KiB7455

CONTRIBUTING.mdH A D04-Dec-20203.1 KiB3625

README.mdH A D04-Dec-20205.7 KiB10982

ansi.goH A D04-Dec-20207.4 KiB259223

application.goH A D04-Dec-202019.5 KiB738466

borders.goH A D04-Dec-20201.2 KiB4638

box.goH A D04-Dec-202013.6 KiB411238

button.goH A D04-Dec-20204.3 KiB158102

checkbox.goH A D04-Dec-20206.6 KiB241152

doc.goH A D04-Dec-20206.4 KiB1801

dropdown.goH A D04-Dec-202016.5 KiB554382

flex.goH A D04-Dec-20206.8 KiB239156

form.goH A D04-Dec-202019.1 KiB685446

frame.goH A D04-Dec-20205 KiB193135

go.modH A D04-Dec-2020332 1310

go.sumH A D04-Dec-20202.1 KiB2524

grid.goH A D04-Dec-202019.7 KiB698512

inputfield.goH A D04-Dec-202018.6 KiB628439

list.goH A D04-Dec-202017.8 KiB629411

modal.goH A D04-Dec-20205.8 KiB202138

pages.goH A D04-Dec-20207.8 KiB316241

primitive.goH A D04-Dec-20202.3 KiB5912

semigraphics.goH A D04-Dec-202018 KiB297207

styles.goH A D04-Dec-20201.6 KiB3628

table.goH A D04-Dec-202037.9 KiB1,291879

textview.goH A D04-Dec-202034 KiB1,186771

treeview.goH A D04-Dec-202021.3 KiB788517

util.goH A D04-Dec-202022.3 KiB643450

README.md

1# Rich Interactive Widgets for Terminal UIs
2
3[![PkgGoDev](https://pkg.go.dev/badge/github.com/rivo/tview)](https://pkg.go.dev/github.com/rivo/tview)
4[![Go Report](https://img.shields.io/badge/go%20report-A%2B-brightgreen.svg)](https://goreportcard.com/report/github.com/rivo/tview)
5
6This Go package provides commonly needed components for terminal based user interfaces.
7
8![Screenshot](tview.gif)
9
10Among these components are:
11
12- __Input forms__ (include __input/password fields__, __drop-down selections__, __checkboxes__, and __buttons__)
13- Navigable multi-color __text views__
14- Sophisticated navigable __table views__
15- Flexible __tree views__
16- Selectable __lists__
17- __Grid__, __Flexbox__ and __page layouts__
18- Modal __message windows__
19- An __application__ wrapper
20
21They come with lots of customization options and can be easily extended to fit your needs.
22
23## Installation
24
25```bash
26go get github.com/rivo/tview
27```
28
29## Hello World
30
31This basic example creates a box titled "Hello, World!" and displays it in your terminal:
32
33```go
34package main
35
36import (
37	"github.com/rivo/tview"
38)
39
40func main() {
41	box := tview.NewBox().SetBorder(true).SetTitle("Hello, world!")
42	if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil {
43		panic(err)
44	}
45}
46```
47
48Check out the [GitHub Wiki](https://github.com/rivo/tview/wiki) for more examples along with screenshots. Or try the examples in the "demos" subdirectory.
49
50For a presentation highlighting this package, compile and run the program found in the "demos/presentation" subdirectory.
51
52## Projects using `tview`
53
54- [IRCCloud Terminal Client](https://github.com/termoose/irccloud)
55- [Window manager for `tview`](https://github.com/epiclabs-io/winman)
56- [Password manager](https://github.com/7onetella/password)
57- [CLI bookmark manager](https://github.com/Endi1/drawer)
58- [A caving database interface written in Go](https://github.com/IdlePhysicist/cave-logger)
59- [App for rental of electic bikes](https://github.com/MrDienns/bike-commerce)
60- [Interactive file browse and exec any command.](https://github.com/bannzai/itree)
61- [A simple CRM](https://github.com/broadcastle/crm)
62- [Terminal UI for todist](https://github.com/cyberdummy/todoista)
63- [Graphical kubectl wrapper](https://github.com/dcaiafa/kpick)
64- [Decred Decentralized Exchange ](https://github.com/decred/dcrdex)
65- [Kubernetes CLI To Manage Your Clusters In Style! ](https://github.com/derailed/k9s)
66- [A CLI file browser for Raspberry PI](https://github.com/destinmoulton/pixi)
67- [A tool to manage projects.](https://github.com/divramod/dp)
68- [A simple app for BMI monitoring](https://github.com/erleene/go-bmi)
69- [Stream TIDAL from command line](https://github.com/godsic/vibe)
70- [Secure solution for fully decentralized password management](https://github.com/guillaumemichel/passtor/)
71- [A growing collection of convenient little tools to work with systemd services](https://github.com/muesli/service-tools/)
72- [A terminal based browser for Redis written in Go](https://github.com/nitishm/redis-terminal)
73- [First project for the Computer Networks course.](https://github.com/pablogadhi/XMPPClient)
74- [CLI tool build in Golang for managing ssh connection](https://github.com/patilsuraj767/connection-master)
75- [Test your typing speed in the terminal!](https://github.com/shilangyu/typer-go)
76- [TUI Client for Docker](https://github.com/skanehira/docui)
77- [SSH client using certificates signed by HashiCorp Vault](https://github.com/stephane-martin/vssh)
78- [A go terminal based pos software.](https://github.com/thebmw/y2kpos)
79- [VMware vCenter Text UI](https://github.com/thebsdbox/vctui)
80- [Bookmarks on terminal](https://github.com/tryffel/bookmarker)
81- [A UDP testing utility](https://github.com/vaelen/udp-tester)
82- [A simple Kanban board for your terminal](https://github.com/witchard/toukan)
83- [The personal information dashboard for your terminal. ](https://github.com/wtfutil/wtf)
84- [MySQL database to Golang struct](https://github.com/xxjwxc/gormt)
85- [Cryptowatch Go SDK](https://github.com/y3sh/cw-sdk-go)
86- [Discord, TUI and SIXEL.](https://gitlab.com/diamondburned/6cord)
87- [A CLI Audio Player](https://www.github.com/dhulihan/grump)
88- [GLab, a GitLab CLI tool](https://gitlab.com/profclems/glab)
89
90## Documentation
91
92Refer to https://pkg.go.dev/github.com/rivo/tview for the package's documentation. Also check out the [Wiki](https://github.com/rivo/tview/wiki).
93
94## Dependencies
95
96This package is based on [github.com/gdamore/tcell](https://github.com/gdamore/tcell) (and its dependencies) as well as on [github.com/rivo/uniseg](https://github.com/rivo/uniseg).
97
98## Versioning and Backwards-Compatibility
99
100I 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:
101
102- a new version of an imported package (most likely [`tcell`](https://github.com/gdamore/tcell)) changes in such a way that forces me to make changes in `tview` as well,
103- I fix something that I consider a bug, rather than a feature, something that does not work as originally intended,
104- I make changes to "internal" interfaces such as [`Primitive`](https://pkg.go.dev/github.com/rivo/tview#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.)
105
106## Your Feedback
107
108Add your issue here on GitHub. Feel free to get in touch if you have any questions.
109