Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a great idea. I always wanted KDE konsole to e. g. show images inlined as is. This is possible via magick six:-, but I wanted this to be natively. I want the terminal to be able to work with any data and display it in any way. No need to simulate the 1980s era anymore (except for backwards/legacy support). So great idea here really.


I did that with Sixels, no Rust needed, no 3D crap, no ad-hoc addons, just old vt340 support in XTerm.

That's how I read images under a remote pubnix with tut using a Mastodon account over plain SSH.

Chafa and XTerm. It works.


I would like to subscribe to your newsletter.


I don't have any newsletter, but for Mastodon:

         - Compile tut, it just requires Go, it will run on any modern OS. 
         
         - Login with tut
         
         - Set a 'tview' shell (sh) script as 
           
           #/bin/sh
           chafa  -f sixel --fit-width "$@" | less -r"
            reset 

         - Configure tut, set program=tview in the [media.image] section.

         - Then launch XTerm as 'xterm -ti 340'.  Edit ~/.Xresources so you have nice fonts:

            xterm*background: black
           xterm*foreground: white
           xterm*loginShell: true
           xterm*faceName: Monospace
           xterm*faceSize: 10
           xterm*geometry: 100x32
           xterm*metaSendsEscape: true
 
 
           xterm*decTerminalID: vt340
          xterm*numColorRegisters: 256
          xterm*sixelScrolling: 1
          xterm*sixelScrollsRight: 1

Done. Edit the facesize value to a bigger font if you have a big resolution. Run "xrdb ~/.Xdefaults" to get the changes.

Also, you can run chafa locally with images such as "chafa -f sixel --fit-with foo.img', no need to login into a VPS, of course, it just was a proof of concept that you could see images over SSH. This can be really useful for instance to read graph/plots with Gnuplot or similar tools.

If any, subscribe to T3X's news letter and get some books, as these small tools will pay a lot in near future. No AI crap, small enough to run on some sets, from Statistics to semi-advanced math (even Zenlisp being crap can do complex numbers, and you can adapt the code for instance for S9 so that interpreter Scheme understand complex numbers and a much faster speed).

Yeah, Python+SAGEMATH, CUDA with number crunching and the like. How much are the GPU's, CPU's and SSD's going nowadays in dollars?


"I would like to subscribe to your newsletter" is an old neck-beard way of saying 'I really like what you're doing there' from the before time. The humor probably got lost over the years. But seriously, thanks for sketching that out. I will definitely give it a spin.


Kitty and several other terminal emulators, have built in graphics display already. IIRC, this is called the kitty protocol, but I might be mistaken.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: