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

xterm even has a tektronix mode which can render vector graphics directly in the terminal.

[1] https://www.dim13.org/teapot [2] https://jirkasnotes.wordpress.com/2019/07/17/xterm-does-grap...



Yes, but only in monochrome, and in a separate window.


https://st.suckless.org/ used to have a circa st-0.8 fork that supported full color sixel graphics, but it seems that specific patch is not in the official list anymore. [1] I think the work moved to https://github.com/jhhuh.

You can even compose the gnuplots with the scrollback patch to scroll back in your gnuplots. I use this all the time. In fact, I just have GNUTERM="sixelgd enhanced linewidth 3 fontscale 2 size 1600,900 truecolor" in my environment variables.

Combined with shell history (or gnuplot history) this makes for a rudimentary "notebook"-like interface, but with a log instead of a file to record state.

[1] https://st.suckless.org/patches/


There’s an alacritty fork with sixel support[1], albeit without vector support.

There’s also kitty that has some improvements over sixel[2]

[1] https://github.com/microo8/alacritty-sixel

[2] https://sw.kovidgoyal.net/kitty/graphics-protocol/


Yeah. Good points!

You could also use the techniques of [1] but use `set term png` and `set output "/tmp/pl.png"` instead and then auto-launch any image viewer on "/tmp/pl.png" instead of relying on terminal graphics at all.

[1] https://news.ycombinator.com/item?id=34366758


That would completely defeat the point! :)


Lol :)





Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: