4 ms·
xterm even has a tektronix mode which can render vector graphics directly in the terminal. [1] https://www.dim13.org/teapot https://www.dim13.org/teapot [2] ht
by __alexs 4y ago
xterm even has a tektronix mode which can render vector graphics directly in the terminal.
[1] https://www.dim13.org/teapot https://www.dim13.org/teapot
[2] https://jirkasnotes.wordpress.com/2019/07/17/xterm-does-graphics-sort-of/ https://jirkasnotes.wordpress.com/2019/07/17/xterm-does-grap...
- db48x 4y agoYes, but only in monochrome, and in a separate window.
- cb321 4y agohttps://st.suckless.org/ 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 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/ https://st.suckless.org/patches/
- rjzzleep 4y agoThere’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 https://github.com/microo8/alacritty-sixel [2] https://sw.kovidgoyal.net/kitty/graphics-protocol/ https://sw.kovidgoyal.net/kitty/graphics-protocol/
- cb321 4y agoYeah. 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 https://news.ycombinator.com/item?id=34366758
- mzs 4y agohere I believe: https://github.com/jhhuh/st-sixel https://github.com/jhhuh/st-sixel