GH-21: bind arrow key codes according to terminfo