Using media keys in a Linux console application

from blog Kevin Boone's website, | ↗ original
Mapping keyboard keys to key codes on Linux is well-documented for the graphical desktop. But what about console applications on embedded Linux systems? There's not much documentation in this area.