Skip to content
rivo edited this page Apr 13, 2018 · 18 revisions

Screenshots and Demo Code

  • Box: A simple box with a title.
  • List: A list with selectable options and keyboard shortcuts.
  • Form: A data entry form.
  • TextView: A multi-color text view with highlights.
  • Table: A table view with fixed rows/columns and selectable cells.
  • Grid: Using Grid to layout multiple widgets.
  • Flex: Using Flexbox to layout multiple widgets.
  • Pages: Using Pages to switch between different widgets.
  • Frame: Adding header and footer text to other widgets.
  • Button: A button.
  • Checkbox: A checkbox.
  • DropDown: A drop-down selection box.
  • InputField: A one-line input field.
  • Modal: A modal message window.
  • Unicode: Demonstrates the use of wide unicode characters (e.g. Chinese).
  • ANSII: How to pipe colorized output from other programs into tview.

Advanced Tutorials

A Demo Application

  • Postgres: A simple PostgreSQL database browser in ~300 lines of code.
Clone this wiki locally