madtty: support for "ESC 6 n", get cursor position