XTSMGRAPHICS Pi=2, Pa=1 returns the different value from xterm.
kumattau opened this issue · comments
XTSMGRAPHICS Pi=2, Pa=1 (Read sixel graphics geometry) returns always width and height defined in MAX_GRAPHIC_DIMENSIONS regardless of text area width and height, but it is different from xterm, which propose this extension.
$ IFS=';' read -a REPLY -s -t 0.25 -d "S" -p $'\e[?2;1;0S'; echo "width=${REPLY[2]} height=${REPLY[3]}"
width=4096 height=4096
By this problem, https://github.com/hackerb9/lsix can not layout pictures as expected position.
It should returns width and height smaller than or equal to, in other words fitting in, text area width and height, that is same behavior as xterm.