TUI library for POSIX compliant shells.
examples | ||
README.md | ||
tui.sh | ||
UNLICENSE |
tui.sh
Text-based User Interface library for POSIX compliant shells.
#!/bin/sh
. ./tui.sh
# Code...
See examples.
Known issues
Currently I've no idea how to force tput
correctly clear screen on sclroll.
- Cant use
tui_select
in subshell e.g.selected=$(tui_select 1 2 3)
tui_select
doesn't work properly on terminal scroll.tui_spin -r
doesn't work properly on terminal scroll.
Roadmap
Functions list may be changed later.
tui_msg
message box with OK buttontui_select
menutui_checklist
menu with multiple choicetui_confirm
confirmation menu (yes/no)tui_input
text inputtui_password
password inputtui_spin
spinnertui_progress
progress bartui_print
print formatted texttui_splitscr
split screentui_termsize
get actual terminal size, set COLUMNS and LINEStui_curpos
get current terminal cursor positiontui_readchar
read characters from keyboardtui_readkey
read keyboard codestui_optval
cli argument parsertui_fallback
fallback to default terminal settings
License
Licensed under The Unlicense, see UNLICENSE.