ITADN

`sixel` output broken under `Windows`

#2488OpenCatsDeservePets 创建于 2026-04-05
bug
C
CatsDeservePetscommented
## Description - Regression introduced by https://github.com/gokcehan/lf/pull/2361 It seems like commit 214965b5e7e4faa9e8b71f9afc99731d3606600d broke `sixel` preview under `Windows` (using the default `Terminal` emulator). **Edit:** I did some testing and pinned it down to `tcell` release [v2.12.0](https://github.com/gdamore/tcell/releases/tag/v2.12.0) (the prior release `v2.11.0` works as expected). It refactored lots of `Windows` specific code. It also seems that `lf` is not the only tool experiencing problems with that version: - https://github.com/arimxyer/pass-cli/commit/e44779b4957334ace85ac5beedd6973c78e4373b ## Steps to reproduce Use the following as your `previewer`: ```cmd @echo off set "file=%~1" set "ext=%~x1" set "w=%~2" set "h=%~3" if /I "%ext%"==".jpg" goto image if /I "%ext%"==".jpeg" goto image if /I "%ext%"==".png" goto image type "%file%" goto :eof :image chafa --format sixel --size "%w%x%h%" --animate off --polite on "%file%" ``` The `previewer` will remain blank when trying to preview a `.jpg` or `.png` image (also happens for `.sixel` images just using the builtin `previewer`).
1 条评论