Terminal Guide

Report Terminal Window State

ESC1B[5B 1131 31 t74
urxvt
xterm
🔧
vte
konsole

Reports if the terminal is minimized (or possibly a background tab).

The terminal replies with

ESC1b [5b 131 t74  for non minimized.

or

ESC1b [5b 232 t74  for minimized.

vte ( ✔ )

🛈 background tabs are possibly reported as minimized.