Wraparound in result of CSI 13t (aka Report Terminal Window Position)
When running echo -ne '\033[13t'; read -r a
in a gnome terminal in the top-left corner of a gnome-shell session i get strangely wrapped results.
For example ^[[3;65511;5t
.
Environment: fedora, vte 0.56.3, gnome-terminal version 3.32.2
Steps to reproduce:
- Start gnome-terminal.
- Position the terminal to the left-top corner of the workspace using the edge snapping of gnome-shell. Don't maximize the window.
- run
echo -ne '\033[13t'; read -r a
Actual result:
^[[3;65511;5t
Expected result:
- a small value or zero as x coordinate.
Additionally using xwininfo on the window reports negative "Absolute upper-left X: -26".
In discussing this on irc @chpe suspected the window shadow to be cause for this.