Skip to main content
1 of 2
Lutz Willek
  • 802
  • 5
  • 10

showkey reads from console device. If you start showkey from a subshell, you have to redirect stdin:

#!/usr/bin/env bash
/usr/bin/showkey -a </dev/stdin
Lutz Willek
  • 802
  • 5
  • 10