|
hace 4 años | |
---|---|---|
.. | ||
CODE_OF_CONDUCT.md | hace 4 años | |
CONTRIBUTING.md | hace 4 años | |
LICENSE.txt | hace 4 años | |
README.md | hace 4 años | |
ansi.go | hace 4 años | |
application.go | hace 4 años | |
borders.go | hace 4 años | |
box.go | hace 4 años | |
button.go | hace 4 años | |
checkbox.go | hace 4 años | |
doc.go | hace 4 años | |
dropdown.go | hace 4 años | |
flex.go | hace 4 años | |
focusable.go | hace 4 años | |
form.go | hace 4 años | |
frame.go | hace 4 años | |
go.mod | hace 4 años | |
go.sum | hace 4 años | |
grid.go | hace 4 años | |
inputfield.go | hace 4 años | |
list.go | hace 4 años | |
modal.go | hace 4 años | |
pages.go | hace 4 años | |
primitive.go | hace 4 años | |
semigraphics.go | hace 4 años | |
styles.go | hace 4 años | |
table.go | hace 4 años | |
textview.go | hace 4 años | |
treeview.go | hace 4 años | |
tview.gif | hace 4 años | |
util.go | hace 4 años |
This Go package provides commonly needed components for terminal based user interfaces.
Among these components are:
They come with lots of customization options and can be easily extended to fit your needs.
go get github.com/rivo/tview
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.
Refer to https://pkg.go.dev/github.com/rivo/tview for the package's documentation.
This package is based on github.com/gdamore/tcell (and its dependencies) as well as on github.com/rivo/uniseg.
Add your issue here on GitHub. Feel free to get in touch if you have any questions.