-
Notifications
You must be signed in to change notification settings - Fork 89
Description
Using iTerm2 3.50beta22 on MacOS Ventura 13.6.6/Intel.
$ chafa --version
Chafa version 1.14.0
Loaders: GIF JPEG PNG QOI SVG TIFF WebP XWD
Features: mmx sse4.1 popcnt avx2
Applying: mmx sse4.1 popcnt avx2
[...]
Chafa doesn't seem to detect the iTerm capabilities, resulting in pixelated output.
Setting '--format iterm' gives the expected, good quality output.
A few environment variables; based on a quick read of the code, chafa should be able to detect it is running in iTerm by reading a couple of these:
$ env|grep TERM|sort
COLORTERM=truecolor
ITERM_PROFILE=Default
LC_TERMINAL=iTerm2
LC_TERMINAL_VERSION=3.5.0beta22
TERM=xterm-256color
TERMINFO_DIRS=/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo
TERM_FEATURES=T3CwLrMSc7UUw9Ts3BFGsSyHNoSxF
TERM_PROGRAM=iTerm.app
TERM_PROGRAM_VERSION=3.5.0beta22
Output with no --format flag:
$ chafa Downloads/Lenna_(test_image).png

Output with '--format iterm':
$ chafa --format iterm Downloads/Lenna_(test_image).png
