Skip to content

mmcar/gtui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

gtui - generalized text user interface

put gtui in your $PATH and make it executable

Example script that uses gtui:

# Define items (you could read these from a file):

items=$(cat <<EOF
apples 4
oranges 2
potatoes 1
coffee 0
EOF
)

# Define keybindings, using special key names as per the new mapping
binds=$(cat <<EOF
j scroll_down "[j] Down"
k scroll_up "[k] Up"
Return select_item "[Enter] Select"
q quit "[q] Quit"
e scroll_down
EOF
)

# Call gtui with the defined items and keybindings
./gtui "$items" "$binds"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages