Terminal Guide

Primary Device Attributes (DA1)

ESC1B[5B p1 c63
urxvt
xterm
vte
konsole
linuxvc
p1 = 0

See terminal implementation specific information below

urxvt ( ✔ )

Always returns (p1 is ignored):

ESC1b [5b ?3f 131 ;3b 232 c63 

xterm ( ✔ )

If p1 is not zero no reply is sent, otherwise:

The response depends on various runtime and compile-time parameters.

For -ti / decTerminalID < 200:

125ESC1b [5b ?3f 131 232 ;3b 333 ;3b 030 ;3b version c63 
or
ESC1b [5b ?3f 131 232 ;3b 232 ;3b 030 ;3b version c63 
Where version is the xterm version number (patch level)
102ESC1b [5b ?3f 636 c63 
101ESC1b [5b ?3f 131 ;3b 030 c63 
< 200ESC1b [5b ?3f 131 ;3b 232 c63 
Else: A sequence is returned to the application that combines the following parts depending if the condition in the right oclumn is true.
ESC1b [5b ?3f level ;3b 131 ;3b 232 with level = 60 + (decTerminalID / 100) (default 64)
;3b 333 if decTerminalID in (240, 241, 330, 340) and regis support is compiled in
;3b 434 if decTerminalID in (240, 241, 330, 340, 382) and sixel support is compiled in
;3b 636 
;3b 838 vt220 keyboard type is active (mode use "vt220" keyboard mapping)
;3b 939 ;3b 131 535 
;3b 131 838 ;3b 232 131 if decTerminalID >= 400
;3b 232 232 if color support is compiled in
;3b 232 939 if OPT_DEC_LOCATOR support is compiled in
c63 

vte ( ✔ )

If p1 is not zero no reply is sent, otherwise:

ESC1b [5b ?3f 636 535 ;3b 131 ;3b 939 c63 

konsole ( ✔ )

Always returns (p1 is ignored):

ESC1b [5b ?3f 131 ;3b 232 c63 

linuxvc ( ✔ )

If p1 is not zero no reply is sent, otherwise:

ESC1b [5b 636 c63