I ran across this bug while using pyte to strip control codes from output for an expectation script. The two codes are * DECKPAM - Set alternate keypad mode * DECKPNM - Set alternate numeric keypad mode I suspect my terminal inserts the DECKPAM code because I use a non-QWERTY keyboard layout.