2 edited tags
| link
1
source | link

How to find out the escape sequence my keyboards sends to terminal?

Let's say we have a generic keyboard with some unknown keys which may send escape sequences to terminal.

The keyboard is connected to an xterm terminal emulator running on a generic BSD/Linux.

To create correct mapping for the unknown keys, we must first know what escape sequences they send to the xterm.

But how to know what escape sequences the keys send?