video-clip-sh/read_keypress
2025-02-16 23:05:24 -08:00

8 lines
114 B
Bash
Executable File

#!/bin/sh
STTY=$(stty -g)
stty raw -echo
SEL=$(dd if=/dev/tty bs=1 count=1 2>/dev/null)
stty "$STTY"
echo "$SEL"