10 lines
169 B
Bash
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
|