You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would like this too, perhaps via magick convert to sixel.
The problem is, detecting sixel support in terminals seems to be completely all over the place. For example, here is my (very custom) sixel detection bash function:
check_sixel_support() {
if infocmp -1 | grep -q "sixel";then# Sixel support detected directly via terminforeturn 0
fiif [[ "$TERM_PROGRAM"=="WezTerm" ]];thenreturn 0
fiif [[ "$TERM_PROGRAM"=="Apple_Terminal" ]];thenreturn 1
fiif [[ -n"$WSLENV" ]];then# WSL as of 2024 does not support sixelreturn 1
fiif [[ -n"$ALACRITTY_LOG"||-n"$ALACRITTY_WINDOW_ID" ]];then# Note that Alacritty may be close to releasing sixel support (?)# https://github.com/alacritty/alacritty/pull/4763return 1
fiif [[ "$TERM"=="xterm-256color" ]];then# sometimes i like cool-retro-term, but alas, no sixels, which...# ...it's a retro terminal emulator, so duh
parent_process=$(ps -p $PPID -o comm=)if [[ "$parent_process"==*"cool-retro-term"* ]];thenreturn 1
fifiif [[ "$TERM_PROGRAM"=="WarpTerminal" ]];thenreturn 1
fiif [[ "$TERM_PROGRAM"=="Hyper" ]];thenreturn 1
fi# for anything else, optimistically assume xterm-256color supports sixelcase"$TERM"in
xterm-256color | xterm-kitty | mlterm | yaft | wezterm)
return 0
;;
esac# if all else fails, failreturn 1
}
Are there any plans to render images?
The text was updated successfully, but these errors were encountered: