norden.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Moin! Dies ist die Mastodon-Instanz für Nordlichter, Schnacker und alles dazwischen. Folge dem Leuchtturm.

Administered by:

Server stats:

3.6K
active users

#sixel

0 posts0 participants0 posts today

Gotta give @amin props for turning me on to [Kew], the terminal music player.

This stuff is the cat's meow. It even has smexy #sixel album art and a histogram/visualizer worthy of cava.

Very easy to compile, too. Always a plus.

* R.L. Dane has flashbacks of Chernobyl-like meltdowns while compiling utilities written in Rust, lmao

P.S., @mirabilos you can add smexy to WTF, if you like. XD
I read it on fb one time and it stuck for some silly reason. I don't usually go for neologisms, but that one tickled my brain.

GitHubGitHub - ravachol/kew: A terminal music player.A terminal music player. Contribute to ravachol/kew development by creating an account on GitHub.

I really love #presenterm #linux console slides tool, it is great does have #sixel support. But I haven’t found reasonable tool for charts. I mean #gnuplot is great, but I find myself impossible for me to produce heatmap there. So I have produced in one or two hours command line tool (read code glue) consuming vega-lite high level grammar of interactive graphics to do the job. So I can plot directly in #terminal and presentern. Now I am afraid to release those about 50 lines of typescript.

Replied to Lupo

@lupo hey, thanks for the suggestion, I didn't know about chafa at all yet!

Though I like the idea of #sixel, it doesn't seem to work (yet?) on the Linux console, so in this specific case, it's a dealbreaker. Hope this can change in the future, though. Already we can use the framebuffer to even play videos (!!!), why not modern image rendering?

Replied in thread

@nikitonsky I wish we could #sixel or otherwise put images inline with terminals. That might go a long way toward putting diagrams "in" with code.

But using the diagrams for input? At that point it's not just code anymore. There has to be some extra-special tooling to support it. Or a VM. I guess Smalltalk is able to do this. But it certainly changes the nature of code as we typically think of it now. The "side artifact" seems inescapable.

Though maybe something like org-mode fancied up so you could toggle between data representations and diagrams/widgets?

#TIL about #lsix (github.com/hackerb9/lsix) and calling #xterm with the option "-ti vt340" to be able to display inline images inside an xterm—thanks to lsix having just arrived in #DebianUnstable: packages.debian.org/sid/lsix

These inline images (or the backend used to display them) seem to be called #sixel graphics. And they're said to work transparently through SSH. Maybe better than #chafa or #catimg.

#BloomScrolling on the terminal! 😉

#tmux now has #sixel support!

Great news! Thanks to a lot of hard work from topcat001 (Anindya Mukherjee), the -portable version of tmux now has SIXEL support.

Why this is this cool? Well, it means images rendered directly into the terminal can now happen, via conversion to SIXEL where appropriate.

One such use-case is with #gnuplot.

As an example of both, see the screenshots I've attached here.

To enable this, you will need to pass a flag to configure:

./configure --enable-sixel

Please do give this a go. This isn't released yet, so if you want to try this, you must do so via git.

Note that you will need a compatible terminal to make use of this -- in my case, that's #xterm and as such, all I needed to do was add the following to my ~/.Xdefaults file:

XTerm.*.decTerminalID: vt340
XTerm.*.numColorRegisters: 256

... and then run `xrdb -merge ~/.Xdefaults`

Enjoy!