This is based on the Linux kernel driver, and has fallback mapping tables in case we aren't connected to a virtual terminal.