Request to implement CSI 16t

44 views
Skip to first unread message

Henner Zeller

unread,
Dec 2, 2023, 9:08:00 AM12/2/23
to chromium-hterm
Hi,
I am the author of https://timg.sh/ which allows to show images and animations in a terminal. If available, it can make use of the iterm2 high-resolution images.

However, in hterm, it can't display animations right now. The reason is, that timg needs to know how many character cells to jump back up to replace frames. So if it knows the size of a character cell (which depends on the font), it has all it needs to know.

For this to work, timg queries the terminal with the CSI 16t query.

Description in the xterm documentation:
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#:~:text=Ps%20%3D%201%206%20%20%E2%87%92%C2%A0%20Report%20xterm%20character%20cell%20size%20in%20pixels.%0A%20%20%20%20%20%20%20%20%20%20Result%20is%20CSI%20%206%20%3B%20%20height%20%3B%20%20width%20t

To test in terminal:
echo -e "\033[16t"
this should reply "\033[6;" followed by semicolon separated size of the character cell, e.g. 15;9.

If this was implemented in hterm, we could see animations and not only the first frame ...
hterm-timg.png
Thanks,
  Henner

Mike Frysinger

unread,
Dec 2, 2023, 10:21:30 AM12/2/23
to Henner Zeller, chromium-hterm
please file requests for us at:

--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/CAEQqtJxcKUXpT9UXQ_U%2Bvm327kgq0XLwUnWKezObZ42FmUk7sQ%40mail.gmail.com.

Henner Zeller

unread,
Dec 2, 2023, 10:50:49 AM12/2/23
to Mike Frysinger, chromium-hterm
Reply all
Reply to author
Forward
0 new messages