termfo
derasterize
termfo | derasterize | |
---|---|---|
1 | 6 | |
0 | 103 | |
- | - | |
0.0 | 1.8 | |
over 1 year ago | over 3 years ago | |
Go | C | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
termfo
-
Everything you ever wanted to know about terminals(but were afraid to ask)
> From the tone of this piece I gather that the ANSI escape codes are actually standard enough to target.
termfo[1] comes with a "termfo" CLI utility which groups terminals by escape code; for example "termfo find-cap save_cursor" shows that almost all terminals use "\x1b7", with just a few very old ones using something different (full output is a bit long, but it's at [2]).
It's useful to check "can I safely hard-code this escape code?" But like you said: for ANSI it's pretty safe to just hard-code most codes, especially the common ones, but never hurts to check.
[1]: https://github.com/arp242/termfo
[2]: https://pastebin.com/raw/pVHGR6aZ
derasterize
- C source file, that is also a valid shell script
-
Terminal Graphics for the 21st Century
Far far better than caca.
The subset of usable characters (glyphs) roughly defines how accurate the picture can be represented: if all you have is - and _ and you want to represent an horizontal pipe, it'll be ugly.
Of course it's more complicated than that, but caca uses ascii, while chafa uses a larger unicode range.
The example is illustrated in picture on https://github.com/csdvrx/derasterize where the left is the original basicidea.c using only unicode halfblocks, and the right has more candidate of different shapes.
Derasterize lets you select the width of the range you want to use, to improve encoding time say for video - but ideally, you would be able to test that whatever font you are using contains the glyphs you want.
- Rust Is Portable
-
Everything you ever wanted to know about terminals(but were afraid to ask)
She's not only done work with sixels but she's the maintainer of the highest quality tool for rendering images as unicode blocks. https://github.com/csdvrx/derasterize
-
Alacritty with sixel
On the application side, there is as yet exactly one terminal multiplexer that can handle images inside multiple terminals, but someone (saitoha?) did make a dev branch of tmux that could do it. /u/csddvx has I think the most recent version of that ; and her derasterize can make sixel work with non-sixel terminals which is a really neat trick.
-
Show HN: I wrote a rust program to translate images into textual line art
For better quality, check https://github.com/csdvrx/derasterize
Example in Windows Terminal:
What are some alternatives?
bash-timestamping-sqlite - bash commandline timestamping using a sqlite database for personal analytics, activity logging and auditing
tv - Quickly view (satellite) imagery directly in your terminal using Unicode 9.0 characters and true color.
libapps - Fork of https://chromium.googlesource.com/apps/libapps/
Windows Terminal - The new Windows Terminal and the original Windows console host, all in the same place!
sixel-tmux - sixel-tmux is a fork of tmux, with just one goal: having the most reliable support of graphics
blessed - Blessed is an easy, practical library for making python terminal apps
pyroscope-rs - Pyroscope Profiler for Rust. Profile your Rust applications.
rules_closure - Closure rules for Bazel
chafa - 📺🗿 Terminal graphics for the 21st century.
bazel-buildfarm - Bazel remote caching and execution service
tiv - terminal image viewer
png2linetext - Converts images into textual line art.