Terminal Guide

Request Cursor Position Report (?) (DECXCPR)

ESC1B[5B ?3f 636 n6e

Sends cursor position report.

The terminal replies with:

ESC1b [5b ?3f row ;3b column ;3b 131 R52 

If cursor origin mode is set the cursor position is reported relative to the top left corner of the scroll area.

See request cursor position report for a more widely supported variant of the command (although that command's response conflicts with F1-key reporting).

xterm ( ✔ )

If emulation level is below 4 the last ';1' is not included in the report.