New issue
Advanced search Search tips

Issue 855673 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

hterm: add support for SIXEL

Reported by cogburn...@gmail.com, Jun 22 2018

Issue description

Hterm (the JS terminal emulator for the Chrome SSH extension) should parse DEC VT-compatible SIXEL image files and convert them to inline PNGs as though sent by OSC 1337.

Chrome Version       : irrelevant
URLs (if applicable) : chrome-extension://pnhechapfaindjhompbnflcldabbghjo/html/nassh.html
Other browsers tested:
     Safari: N/A / Untested
    Firefox: N/A / Untested
       Edge: N/A / Untested

What steps will reproduce the problem?
(1) open Chromium SSH extension & login
(2) cat sixel image file. (some examples are at https://invisible-mirror.net/archives/temp/SIXEL.tar.gz)

What is the expected result?
Image appears. Sixel draw directives are parsed and internally converted to a PNG and then displayed inline just as a PNG sent over OSC 1337 is displayed.

What happens instead?
Image does not appear. Sixel draw directives are ignored and passed as though they were regular data.

Sometimes, random characters are printed onscreen (??) (biplane.six), and sometimes, only an intended text portion of the sixel image is printed (oriole.six).

More information about sixels can be found here: https://en.wikipedia.org/wiki/Sixel
https://www.digiater.nl/openvms/decus/vax90b1/krypton-nasa/all-about-sixels.text https://www.vt100.net/docs/vt3xx-gp/chapter14.html

 

Comment 1 by vapier@chromium.org, Jun 22 2018

Labels: -Type-Bug Type-Feature
Status: Available (was: Unconfirmed)
Summary: hterm: add support for SIXEL (was: Hterm should render DEC sixel images as PNGs)
i've already implemented SIXEL support in hterm, just haven't uploaded it.  trying to work out an edge case or two wrt animation.

it's done using a <canvas> element though ... not going to go through PNGs for this.
OK. Cool. I just thought that using PNGs would improve compatibility with other browsers, not all of which implement <canvas>. But using PNGs was just a suggestion; I had no idea someone was already working on implementing SIXEL support another way. Cool, though. 👍

Sign in to add a comment