hzeller / timg

A terminal image and video viewer.
GNU General Public License v2.0
1.97k stars 74 forks source link

How to disable this error(warning)? #86

Closed bropines closed 2 years ago

bropines commented 2 years ago

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."

hzeller commented 2 years ago

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.

hzeller commented 2 years ago

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.

hzeller commented 2 years ago

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.

bropines commented 2 years ago

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.