home.social

#sixels — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #sixels, aggregated by home.social.

  1. #sixels do “compress” image data by its nature design, #libsixel is highly optimized, on the other side #kittyterminal protocol

    Direct transmission (t=d):
    RGB/RGBA -> base64 … huge data transfer
    RGB/RGBA -> PNG -> base64 … better in size, significant overhead
    RGB/RGBA -> zlib compression -> base64 … also significant overhead
    RGB/RGBA -> PNG -> zlib compression -> base64 .. even bigger overhead

    Simple file transmission (t=f)
    Client needs access to file … Forget about #ssh

    Temporary file transmission (t=t)
    Client needs access to /tmp, /dev/shm … forget about ssh

    Shared memory object (t=s)
    Client needs to have access to POSIX shared memory object/Windows named shared memory object … forget about ssh.

    So yes, kitty is “superior” protocol with superior performance, except it works as “superior” only on localhost and event that is questionable at least in case of #brow6el (ok I acknowledge thats this is very specific “hack”)

  2. #kittyterminal image protocol is literally unusable on #ssh, and thats the whole point of terminal apps. If we need something we need to improve the #sixels but let’s start with broader support and don’t excuse it is legacy bad protocol, because tbh it works really well even in Microsoft terminal.

  3. How much a #kittyterminal image protocol is deemed as superior to #sixels, it is piece of crap. It breaks color terminal sequences, literally impossible to print image move cursor on location xy and print with sequences colored text on top of image. Or at least it is so complicated close to unusable from development experience.

  4. When I #procrastinate I write #gluecode, when I procrastinate and write glue code, I do really stupid things. I have hijacked headless chromium browser and “render” its output as #sixels. So I have “full” browser In terminal. It’s far from perfect, would like to add native dialogs handling (save file, alert, prompt, maybe handling certificates) but it will be hard to find motivation. So far I handle goto new page, go back and go forward. #linux #coding #fun #unimportantstuff