hzeller/timg

How to disable this error(warning)?

bropines opened this issue · 4 comments

IMG_20220918_102927
This annoying warning bothers me very much. Is there any parameter hiding warnings?
Termux, v 1.4.4
Warning "Terminal does not support pixel size query, but graphics protocol requested.
Can't show animations or have columns in grid."

Maybe I should only actually trigger the warning in case column mode or animation is requested in the first place, I'll have a look into that.

This warning is triggered because the terminal, on request with TIOCGWINSZ, does not fill in the fields ws_xpixel and ws_ypixel, which would probably good to file as issue to the termux developers.

Alright, now the warning only will show up if there was an animation that could only display its first frame or if multi-column mode was requested.

The real solution though is for you to file a ticket with termux to implement the TIOCGWINSZ information.

Also, if you file issues with termux, ask them to implement the \033[>q CSI query, that way we could detect termux and automatically switch to -pi mode.

Also, if you file issues with termux, ask them to implement the \033[>q CSI query, that way we could detect termux and automatically switch to -pi mode.

I think I'll open an issue tomorrow and leave links to this discussion.