News for hackers. Stuff that matters.
Re:WordPerfect for UNIX (1992) by junon on Monday July 18, 2022 @02:56PM (#32142033)
There have been pushes for sixel for ages. I just don't think it's going to happen.
Re:WordPerfect for UNIX (1992) by georgia_peach on Monday July 18, 2022 @03:06PM (#32142168)
It's okay for low-color/solid-run images, terrible for everything else. Nachman's image mime blobs (iTerm2 style) is the superior approach. mintty/mlterm/rlogin/wezterm already support it. Kitty has an (incompatible) variant--same idea, but delivered in chunks.
Re:WordPerfect for UNIX (1992) by csdvrx on Monday July 18, 2022 @03:31PM (#32142475)
> terrible for everything else

Define terrible. Wasteful, yes. But when we run chat programs inside electron apps, does it really matters?

> is the superior approach

My idea of superiority is linked to availability and support. Multiple competing formats are often a problem

> Kitty has an (incompatible) variant

Indeed, the multiple competing formats might each have some specific technical advantages, but networks effect makes your life harder.

Re:WordPerfect for UNIX (1992) by georgia_peach on Monday July 18, 2022 @03:41PM (#32142612)
> when when run chat programs inside electron apps, does it really matters?

From a dev perspective, it's a lot easier to base64 an image you already have, with a base64 that's already in your stdlibs, than to scour github for a passable sixel library to pre-rasterize that jpeg & reformat it as sixel. I say this as someone who's written a sixel conversion library.

> competing formats

It's not a very old format, yet already supported on 4-5 terminals last I checked.

Re:WordPerfect for UNIX (1992) by retrocryptid on Monday July 18, 2022 @05:06PM (#32143720)
Or you could just use the libsixel package. Downloading libraries isn't unknown to developers (thinking about `apt-get install libncurses5-dev libsixel-dev` or the like.) Or sysadmins: `apt-get install libncurses5` or `apt-get install libsixel`.
Re:WordPerfect for UNIX (1992) by georgia_peach on Monday July 18, 2022 @11:36PM (#32147262)
&& find out how to get it on OSes that aren't debian-based

&& find a decent FFI wrapper if my app isn't in C-land

&& read the docs

&& static link hassles so I don't have to sort-out dynamic-link hassles for every platform

|| round-up a collection of dynamic libsixel libs & figure out how to bundle them with my script if I'm not using a compile-to-machine-code language

vs

   b64 := base64.Encode(myImg)
   fmt.Printf("\x1b]1337;inline=1;size=%d:%s\n", len(b64), b64)
If it's a feature request where I'm really only handling it to shut a few people up, which route am I going to take?
Re:WordPerfect for UNIX (1992) by mongol on Monday July 18, 2022 @05:09PM (#32143754)
> Indeed, the multiple competing formats might each have some specific technical advantages, but networks effect makes your life harder.

Any hope for standardization?

Re:WordPerfect for UNIX (1992) by csdvrx on Monday July 18, 2022 @09:12PM (#32146250)
> Any hope for standardization?

I do everything I can to help popularize sixels - it could be a default fallback format: sixel-tmux could "rewrite" on the fly sixel sequences into kitty iterm2 or whatever

Re:WordPerfect for UNIX (1992) by retrocryptid on Monday July 18, 2022 @05:03PM (#32143663)
Sixels are compatible with cursor positioning escape sequences, so I can position the image on the screen. I wasn't able to do this with term2. Very possible I just didn't see how to do it though. If you have a pointer to docs for making that work, I'd love to play around with it.
Re:WordPerfect for UNIX (1992) by georgia_peach on Monday July 18, 2022 @11:21PM (#32147164)
Last time I evaluated this, sixel & base64 image placement relative to re-positioned cursor had slightly different behaviors across different implementations. I think the only one with well-defined placement/dimensions behavior was the Kitty format--which is unfortunately Kitty-only.

https://sw.kovidgoyal.net/kitty/graphics-protocol/

If the goal is to hot-patch graphics into existing TUIs, Kovid is probably on the right track with this. It needs to be something richer than what sixel or iTerm2 provide--with pixel placement, play/pause, scaling, etc. Though for a do-over of piping a UI over a (relatively) low-bandwidth wire, I think something like Sun NeWS would have been a simpler & more feature-complete approach.

Re:WordPerfect for UNIX (1992) by wezfurlong on Tuesday July 19, 2022 @08:56PM (#32159968)
wezterm supports the kitty image protocol (as well as sixel and iterm2), and runs on all major platforms.

(disclaimer: I'm the wezterm guy)

Re:WordPerfect for UNIX (1992) by junon on Wednesday July 20, 2022 @06:08AM (#32163587)
Been using Wezterm for about a year now and I'm a very satisfied user. Beats any others I've ever used - iTerm2 comes close but it's Mac only. Every other terminal emulator in my experience has been problematic. Wezterm has not been. Just works.
Re:WordPerfect for UNIX (1992) by georgia_peach on Tuesday July 19, 2022 @10:12PM (#32160538)
a mighty fine terminal sir
Re:WordPerfect for UNIX (1992) by jhallenworld on Monday July 18, 2022 @03:41PM (#32142624)
Thanks, will try this. Wish xterm was on the list, but mlterm is OK.
Re:WordPerfect for UNIX (1992) by pcwalton on Monday July 18, 2022 @04:36PM (#32143311)
Yeah, I don't see the point in trying to resurrect a dead standard that isn't very efficient or widely supported. Backwards compatibility is important, but sixels aren't even that well supported nowadays†, so there's not much to be compatible with. Better to just push for new de facto standards for images in the terminal; trying to resurrect sixels is an exercise in retrocomputing.

† xterm and iTerm2 are the only widely-used terminal emulators nowadays that support sixels. Few Linux users use plain old xterm nowadays due to lack of desktop integration, and iTerm2 is not the OS default terminal (and it supports a better image format anyway). Also note that no popular Windows terminal emulators (conhost.exe, conemu, Microsoft Terminal) support sixels at all.

Re:WordPerfect for UNIX (1992) by retrocryptid on Monday July 18, 2022 @04:57PM (#32143576)
The idea here is you can get graphics via a ssh connection. You don't need to setup a web interface to collect and process metrics.

It's useful cause you don't have to take your fingers off the keyboard to get graphical information.

And yeah. I would be just as happy to use NAPLPS, but Sixel support is what we have.

Re:WordPerfect for UNIX (1992) by jph00 on Monday July 18, 2022 @05:15PM (#32143844)
sixel works fine, and is better supported than a "new de facto standard" the doesn't even exist yet. It's not at all true that no popular windows s/w supports it - mintty/wsltty supports it just fine and is widely used.
Re:WordPerfect for UNIX (1992) by pcwalton on Monday July 18, 2022 @07:04PM (#32145249)
No, a better standard does exist: https://iterm2.com/documentation-images.html

In fact, mintty already supports it. Only xterm doesn't. Sixel really is just retrocomputing at this point.

Re:WordPerfect for UNIX (1992) by hulitu on Wednesday July 20, 2022 @05:24AM (#32163302)
Xterm integrates perfectly in fvwm. And it does not need GB of RAM to render text.