@whoisjeremylam/pi-waveterm-images
v1.0.1
Published
Enable image rendering in WaveTerm for pi-tui
Readme
pi-waveterm-images
Enable image rendering in WaveTerm for pi-tui.
WaveTerm supports Kitty, iTerm2, and Sixel image protocols via @xterm/addon-image, but pi-tui doesn't recognize TERM_PROGRAM=waveterm yet. This extension enables image rendering by setting the capabilities directly.
Requirements
- WaveTerm fork with image support: https://github.com/whoisjeremylam/waveterm-remote
- Branch:
feat/image-rendering-support - This fork includes
@xterm/addon-imagefor Sixel, Kitty, and iTerm2 protocol support
- Branch:
Install
pi install npm:@whoisjeremylam/pi-waveterm-imagesHow it works
- Detects
TERM_PROGRAM=waveterm - Calls
setCapabilities()to enable Kitty image protocol - Images will render inline in pi instead of showing
[Image: image/png ...]
Testing
- Build WaveTerm from the fork:
git clone https://github.com/whoisjeremylam/waveterm-remote.git
cd waveterm-remote
git checkout feat/image-rendering-support
./node_modules/.bin/task dev- In a WaveTerm terminal, run:
chafa --format=iterm2 image.png