tui.image_protocol
tui.md.image_protocol VAR
Stores in VAR the image protocol of the terminal: kitty, iterm2 or none.
Parameters
VAR: the name of the variable that receives the protocol.
Notes
kittyis reported for kitty and Ghostty (the protocol with Unicode placeholders thattui.md.images graphicsdraws),iterm2for iTerm2 and WezTerm (another protocol, not drawn),noneotherwise and also inside tmux, which needs passthrough.- Detection reads
TUI_MD_IMAGE_PROTOCOL(an override:kitty,iterm2,none), thenTMUX,KITTY_WINDOW_ID,TERM,TERM_PROGRAM,GHOSTTY_RESOURCES_DIRandLC_TERMINAL. - Only
kittyis drawn by DABT; the iTerm2 protocol is detected but pictures stay placeholders there.
Example
tui.md.image_protocol proto # proto=kitty in kitty
