News for hackers. Stuff that matters.
Re:Chafa 1.8: Terminal graphics with a side of everything by Flimm on Saturday September 18, 2021 @05:28AM (#28574845)
Chafa is an open source project that lets you visualize images on the command-line by converting them to Unicode characters ("ASCII art") with colours. It's available in many Linux distros, as well as Homebrew for macOS. What a find!

  $ chafa example_image.jpg
https://hpjansson.org/chafa/
Re:Chafa 1.8: Terminal graphics with a side of everything by LargoLasskhyfv on Saturday September 18, 2021 @03:10AM (#28574337)
Interesting.

Under the list of supported terminals they mention:

Another innovative beast of genetically engineered goodness: ctx.

[1] https://ctx.graphics/terminal/

To play, or not to play?

Re:Chafa 1.8: Terminal graphics with a side of everything by sprash on Saturday September 18, 2021 @07:54AM (#28575494)
Interesting project. In an ideal universe something like this would make the "Web" a.k.a. HTML/CSS/JS completely obsolete.
Re:Chafa 1.8: Terminal graphics with a side of everything by hestefisk on Saturday September 18, 2021 @08:52AM (#28575828)
That’s very cool… do too ctx as a daily driver?
Re:Chafa 1.8: Terminal graphics with a side of everything by mftb on Friday September 17, 2021 @11:47PM (#28573494)
Chafa is awesome. Chafa+Kitty is... mega-awesome! ( You thought I was gonna say Chitty ;p )
Re:Chafa 1.8: Terminal graphics with a side of everything by cassonmars on Saturday September 18, 2021 @03:14AM (#28574352)
Chitty Chitty Hash Bang?
Re:Chafa 1.8: Terminal graphics with a side of everything by mgraczyk on Friday September 17, 2021 @09:39PM (#28572795)
Wow this is pretty incredible.

I work on image processing and generally do mosh + tmux + cli tools. I have to run servers on my workstation to view images (or use jupyter notebooks). This would seriously simplify some basic debugging workflows for me!

Re:Chafa 1.8: Terminal graphics with a side of everything by cyberge99 on Friday September 17, 2021 @09:41PM (#28572815)
If you can use iTerm2, you can use the commands ‘imgcat’ and ‘imgls’ to view images in the terminal.
Re:Chafa 1.8: Terminal graphics with a side of everything by mgraczyk on Friday September 17, 2021 @10:13PM (#28572970)
Interesting, it doesn't work with my mosh setup but it looks really good over ssh. I'll fiddle with my setup and give it a try. Thanks!
Re:Chafa 1.8: Terminal graphics with a side of everything by leephillips on Friday September 17, 2021 @11:50PM (#28573519)
If you just need to see images in your terminal, xterm has (in some versions) supported sixels for years.
Re:Chafa 1.8: Terminal graphics with a side of everything by anthk on Saturday September 18, 2021 @06:20AM (#28575043)
xterm -ti 340 (not under openbsd). Then:

chafa -f sixels image.png

Re:Chafa 1.8: Terminal graphics with a side of everything by mgraczyk on Saturday September 18, 2021 @12:37PM (#28577460)
I use iTerm2 connected to debian over mosh
Re:Chafa 1.8: Terminal graphics with a side of everything by nickdothutton on Saturday September 18, 2021 @11:55AM (#28577169)
Here’s to the renaissance in terminal UIs.
Re:Chafa 1.8: Terminal graphics with a side of everything by thayne on Saturday September 18, 2021 @01:47AM (#28573996)
I really wish there was a standard pixel format for terminals that was better than sixel. iTerm2 and kitty each have their own custom mechanism, but AFAIK, they are the only ones that use their respective protocols.
Re:Chafa 1.8: Terminal graphics with a side of everything by floatboth on Saturday September 18, 2021 @04:39AM (#28574649)
Wezterm supports both their protocols :)
Re:Chafa 1.8: Terminal graphics with a side of everything by WalterGR on Monday September 20, 2021 @11:28PM (#28601810)
Re:Chafa 1.8: Terminal graphics with a side of everything by drran on Saturday September 18, 2021 @07:52AM (#28575478)
`notcurses-demo` works badly in `wezterm`. `mapscii.me` works fine. Nice terminal, but a bit hard to configure, because of Lua.
Re:Chafa 1.8: Terminal graphics with a side of everything by thayne on Saturday September 18, 2021 @03:30PM (#28578596)
I hadn't heard of wezterm before. It looks pretty interesting. How mature is it compared to alacritty?
Re:Chafa 1.8: Terminal graphics with a side of everything by floatboth on Sunday September 19, 2021 @08:47PM (#28589349)
It's much better in every way.

It's very actively maintained by someone who cares a lot about features and user experience. In fact I've switched to wezterm right after a current Alacritty maintainer rejected my little pull request that excluded fancy newline signs and stuff from the default URL characters list.

Aside from cool features, the renderer is better too, IIUC it's already using lots-of-quads like a proposed alacritty improvement in a long unmerged PR.

Re:Chafa 1.8: Terminal graphics with a side of everything by Fnoord on Saturday September 18, 2021 @07:35AM (#28575361)
Anyone know how/if Alacritty is supported? Doesn't seem to work for me.
Re:Chafa 1.8: Terminal graphics with a side of everything by frabbit on Saturday September 18, 2021 @05:15PM (#28579378)
This is amazing! Even works with GIF89a (but not with APNG).
Re:Chafa 1.8: Terminal graphics with a side of everything by jomendoz on Sunday September 19, 2021 @12:07AM (#28581614)
Unfortunately, "chafa" means lame in Spanish.
Re:Chafa 1.8: Terminal graphics with a side of everything by rektide on Thursday September 16, 2021 @12:53AM (#28548171)
still no hdr? oh please! kidding. wow the kitty terminal is awesome. i do kind of want hdr. maybe throw in some bloom too?