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

8 lines
124 B
Bash

#!/bin/sh
. ../tui.sh
printf 'Press any key. Key will printed below.\n'
tui_readkey KEY
printf 'Key pressed: %s\n' "$KEY"