compat: handle cursor-controls chars in ESC sequences