tui.sh/examples/readchar
2023-03-21 02:48:44 +03:00

10 lines
169 B
Bash

#!/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