tui.sh/examples/readchar

10 lines
169 B
Plaintext
Raw Permalink Normal View History

2023-03-21 02:48:44 +03:00
#!/bin/sh
. ../tui.sh
num="${1:-1}"
printf 'Usage: readchar NUMBER\n'
printf 'Input characters (number=%s):\n' "$num"
tui_readchar -n "$num" VAR
echo Characters: $VAR