Terminal Guide

Get Icon Title

ESC1B[5B 2032 30 t74
urxvt
🔧
xterm
🔧
vte
konsole

Report the terminal icon name.

The terminal replies:

ESC1b ]5d L4c data ESC1b \5c 

Where data usually is the empty string, because this control sequence turned out to be a security hazard.

If explicitly enabled by the user of the terminal some implementations report the icon name in data. If enabled with set title mode the string is hex encoded.

urxvt ( 🔧 )

🛆 urxvt always uses ST9c  as terminator instead of ESC1b \5c .

vte ( ✓ )

Source explains:

Report a static window title, since the real window title should NEVER be reported, as it creates a security vulnerability. See http://marc.info/?l=bugtraq&m=104612710031920&w=2 and CVE-2003-0070.