pub fn create_image_picker() -> Option<Picker>Expand description
Create an image picker for protocol detection
This should be called BEFORE entering alternate screen mode.
Detection priority:
FILEVIEW_IMAGE_PROTOCOLenvironment variable (explicit override)- Terminal brand detection → recommended protocol
- Query terminal capabilities via escape sequences
- Chafa → Halfblocks fallback (Chafa requires
chafafeature)
Set environment variable FILEVIEW_IMAGE_PROTOCOL to control behavior:
auto(default): Auto-detect terminal protocolhalfblocks: Force halfblock rendering (most compatible)chafa: Force Chafa rendering (requireschafafeature and libchafa)sixel,kitty,iterm2: Force specific protocol