Terminal Guide

Query cursor style

ESC1B P50 $24 q71 20 q71 ESC1B \5C
xterm
vte

Query the current cursor style.

This queries the state set via select cursor style.

The terminal replies with ESC1b P50 131 $24 r72 cmd 20 q71 ESC1b \5c .

Where cmd describes the cursor style. 0 is mapped to the actual style that is default.

vte ( ✓ )

Does not translate 0 to the actual default style.