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

..03-May-2022-

demos/H03-May-2022-1,8971,563

CODE_OF_CONDUCT.mdH A D12-Jul-20203.2 KiB7455

CONTRIBUTING.mdH A D12-Jul-20203.1 KiB3625

README.mdH A D12-Jul-20201.9 KiB6341

ansi.goH A D12-Jul-20207.4 KiB259223

application.goH A D12-Jul-202019.4 KiB729461

borders.goH A D12-Jul-20201.2 KiB4638

box.goH A D12-Jul-202013.4 KiB413240

button.goH A D12-Jul-20204.3 KiB158102

checkbox.goH A D12-Jul-20206.1 KiB227144

doc.goH A D12-Jul-20206.5 KiB1811

dropdown.goH A D12-Jul-202016.3 KiB548377

flex.goH A D12-Jul-20206.4 KiB226145

focusable.goH A D12-Jul-2020234 94

form.goH A D12-Jul-202018.5 KiB664427

frame.goH A D12-Jul-20204.4 KiB170115

go.modH A D12-Jul-2020299 1310

go.sumH A D12-Jul-20202.2 KiB2625

grid.goH A D12-Jul-202019.4 KiB685502

inputfield.goH A D12-Jul-202018.5 KiB626437

list.goH A D12-Jul-202017.8 KiB629411

modal.goH A D12-Jul-20205.4 KiB191129

pages.goH A D12-Jul-20207.4 KiB303230

primitive.goH A D12-Jul-20202.3 KiB5812

semigraphics.goH A D12-Jul-202018 KiB297207

styles.goH A D12-Jul-20201.6 KiB3628

table.goH A D12-Jul-202037.2 KiB1,267864

textview.goH A D12-Jul-202034 KiB1,190775

treeview.goH A D12-Jul-202020.9 KiB776514

util.goH A D12-Jul-202022 KiB631441

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