Query 132 column mode.
The terminal replies:
ESC1b P50 131 $24 r72 Ⓝwidth $24 |7c ESC1b \5c
Where width = 80 if 132 column mode is unset. Otherwise width = 132.
width