I am working on an embedded system that is connected over USB serial TTY (i.e. /dev/ttyUSB0), which needs to interpret arrow keys sent via a virtual terminal such as screen
. The problem is, the shell (bash
) and or screen
seems to digest the escape sequence and then send on just the last byte. So, taking the up-arrow key for example –