Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
demos/ | H | 03-May-2022 | - | 1,897 | 1,563 | |
CODE_OF_CONDUCT.md | H A D | 12-Jul-2020 | 3.2 KiB | 74 | 55 | |
CONTRIBUTING.md | H A D | 12-Jul-2020 | 3.1 KiB | 36 | 25 | |
README.md | H A D | 12-Jul-2020 | 1.9 KiB | 63 | 41 | |
ansi.go | H A D | 12-Jul-2020 | 7.4 KiB | 259 | 223 | |
application.go | H A D | 12-Jul-2020 | 19.4 KiB | 729 | 461 | |
borders.go | H A D | 12-Jul-2020 | 1.2 KiB | 46 | 38 | |
box.go | H A D | 12-Jul-2020 | 13.4 KiB | 413 | 240 | |
button.go | H A D | 12-Jul-2020 | 4.3 KiB | 158 | 102 | |
checkbox.go | H A D | 12-Jul-2020 | 6.1 KiB | 227 | 144 | |
doc.go | H A D | 12-Jul-2020 | 6.5 KiB | 181 | 1 | |
dropdown.go | H A D | 12-Jul-2020 | 16.3 KiB | 548 | 377 | |
flex.go | H A D | 12-Jul-2020 | 6.4 KiB | 226 | 145 | |
focusable.go | H A D | 12-Jul-2020 | 234 | 9 | 4 | |
form.go | H A D | 12-Jul-2020 | 18.5 KiB | 664 | 427 | |
frame.go | H A D | 12-Jul-2020 | 4.4 KiB | 170 | 115 | |
go.mod | H A D | 12-Jul-2020 | 299 | 13 | 10 | |
go.sum | H A D | 12-Jul-2020 | 2.2 KiB | 26 | 25 | |
grid.go | H A D | 12-Jul-2020 | 19.4 KiB | 685 | 502 | |
inputfield.go | H A D | 12-Jul-2020 | 18.5 KiB | 626 | 437 | |
list.go | H A D | 12-Jul-2020 | 17.8 KiB | 629 | 411 | |
modal.go | H A D | 12-Jul-2020 | 5.4 KiB | 191 | 129 | |
pages.go | H A D | 12-Jul-2020 | 7.4 KiB | 303 | 230 | |
primitive.go | H A D | 12-Jul-2020 | 2.3 KiB | 58 | 12 | |
semigraphics.go | H A D | 12-Jul-2020 | 18 KiB | 297 | 207 | |
styles.go | H A D | 12-Jul-2020 | 1.6 KiB | 36 | 28 | |
table.go | H A D | 12-Jul-2020 | 37.2 KiB | 1,267 | 864 | |
textview.go | H A D | 12-Jul-2020 | 34 KiB | 1,190 | 775 | |
treeview.go | H A D | 12-Jul-2020 | 20.9 KiB | 776 | 514 | |
util.go | H A D | 12-Jul-2020 | 22 KiB | 631 | 441 |
README.md
1# Rich Interactive Widgets for Terminal UIs 2 3[![Godoc Reference](https://img.shields.io/badge/godoc-reference-blue.svg)](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## Documentation 53 54Refer to https://pkg.go.dev/github.com/rivo/tview for the package's documentation. 55 56## Dependencies 57 58This 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). 59 60## Your Feedback 61 62Add your issue here on GitHub. Feel free to get in touch if you have any questions. 63