Inline images
imgcat photo.png renders the image in the terminal, inline - kitten icat photo.png too, detected live. Both scroll away with the output like any text, reflow with the window, and clear with the screen. No shell integration, nothing installed into your rc files: the terminal decodes what the command prints.
What ships
- OSC 1337 - iTerm2's inline-image protocol, both wire forms: the legacy single-shot
File=sequence and the chunkedMultipartFile/FilePart/FileEndsession (whatimgcatemits). WezTerm-family tools speak it natively. - The kitty graphics protocol - the field's second standard, through the APC escape: the subset real emitters use, with live query detection (
kitten icatworks with nothing but itself installed). See the kitty section. - PNG, JPEG, GIF, WebP, and BMP decode (the
bmpfeature is on every platform, soimgcat photo.bmprenders on Linux as well). Everything else renders nothing - quietly, never half. - Images ride the grid like text: a placement is diced across the cells it covers, so scrollback, reflow, resize, and alt-screen clearing treat it exactly as they treat characters. No floating overlay to fall out of sync.
- Kill switch:
images_enabled(defaulttrue, the Terminal page of the Settings) makes the whole pipeline inert - the sequence stays parsed, nothing decodes or places. A flip applies live.
Pasting images
Pasting an image is a different road from the ones above, and it deliberately never renders. Two clipboards reach the same pipeline: image bytes on the clipboard (a screenshot tool's copy - PNG, the interchange format every compositor converts to), and an image file copied in a file manager - COSMIC Files, Nautilus, Dolphin - or landed by a screenshot portal, which the paste reads through its file:// URI. On Windows the image bytes come through the toolkit's clipboard - PNG and BMP among them, a Paint or Office copy - and middle-click paste is absent: Windows has no primary selection. A paste:
-
The paste reads the image bytes - from the clipboard offer, or from the one local file a qualifying URI names - and writes them to
~/.cache/dropterm/paste/paste-YYYYMMDD-HHMMSS-<n>.<ext>, the extension the image's own format (.png,.jpg,.gif,.webp, or.bmp, decided by the bytes' content). -
That file's path pastes as text - the paste's only trace in the grid, ready for the shell,
claude,imgcat, or anything that takes a file argument. -
The paste is recorded in its tab's images panel. Because that trace is the paste's whole visible product, a paste never lands under the panel: an image paste, a plain text paste, and the panel's own Re-paste verb each close a standing panel first, so what you pasted reads at the prompt in the clear (any of the panel's doors reopens it).
The panel:
- Four doors: the
Ctrl+Shift+Ochord (a toggle - a repeat press shuts the standing panel, the keyboard's way out; the pane keeps its keys under the veil, so Escape stays the shell's byte), its row in the command palette, Pasted Images… in a band's right-click menu, and the pasted-images chip - a core chip that stands while the tab has pastes (▦ 3 images, singular at one) and opens the panel on its click. - Rows newest-first, a thumbnail per image, its stamp restated for reading (
2026-11-09 14:30:25) with the dimensions dimmed beneath. The thumbnail and its stamp are the Open button. An empty tab shows the panel's empty state. - Five verbs per row: Open (the system viewer), Copy path, Copy image (the bytes back to the clipboard in their own format - over SSH, where the local path is useless, this is the one that travels), Re-paste (the path again, through the same paste channel), and Delete.
- Delete is the one destructive verb: styled destructive, held apart at the row's far edge, behind a two-step confirm - its press swaps to the labeled Confirm delete / Keep pair (one shape with the Profiles page's own delete idiom), and only the confirm removes the file, row, and thumbnail together. The file it deletes is the paste's only durable copy, which is why one click never erases it.
- The panel header's Open folder action shows the paste cache directory in your file manager. Open and Open folder hand the path to the system and close the panel - the launching viewer or file manager is the launch's feedback, and the window gets out of its way (a refused launch leaves it standing). The drop-down follows too when it would otherwise stay in the viewer's way: with
hide_on_focus_losson it already slides out when the viewer takes its keyboard, so a stay-open surface (the flag off) hands its own hide with the launch. - The backdrop, the header's Close, or a fresh paste also shut the panel. Every close - Open's included - disarms a standing delete pair.
- Four doors: the
The file-copy road fires for exactly one local image: a single file:// URI (empty or localhost host) whose file's first bytes are one of the five formats above. The file's own content is the only thing that decides - the file's name, its extension, and the URI's claim are never consulted - so a URI naming a non-image file never pastes its bytes, and a URI naming a FIFO or a directory is never opened. Everything else is the ordinary text paste, unchanged: a multi-file selection, a non-image file, a network share (smb://), the trash (trash://) - the offer's text pastes verbatim.
In the survey behind this design, no terminal pastes clipboard images at all. The two apps that do (Warp, Claude Code) collapse the image to a compact marker backed by a file. DropTerm follows: the path is the marker, the panel keeps the pastes findable after the prompt scrolls away, and pixels stay where a program asked for them. The survey: in the research log.
Pastes land in ~/.cache/dropterm/paste/ and stay until something removes them: the panel's Delete verb, clearing the directory, or the cache's own 256 MiB bound - past it, the oldest files give way after each write, the fresh paste never among them (known issues). A row whose file is gone leaves the panel with it. One ceiling applies on both roads: an image paste larger than 32 MiB is refused whole - nothing pastes. One warn names it in the log, never a fallback that would paste a URI where you expected your image. SSH, the other direction: the pasted path is local to where DropTerm runs - a remote shell receives a path it cannot read (copy image is the workaround).
Driving it
- imgcat (iTerm2's own utility -
curl -L https://iterm2.com/utilities/imgcat > ~/.local/bin/imgcat && chmod +x ~/.local/bin/imgcat):imgcat photo.pnguses the chunked session.imgcat -l photo.pnguses the legacy single-shot. Both render. - wezterm imgcat: same protocol, same result.
- kitten icat:
kitten icat photo.pngprobes with a live query, detects DropTerm, and renders - no environment variables set, nothing configured. - chafa:
chafa -f kitty photo.pngandchafa -f iterm photo.pngboth render. - timg / viu: force their iTerm2 mode and they render.
timg photo.pngunderTERM=xterm-kitty(a manual env override - DropTerm's ownTERMnever claims to be kitty) speaks the kitty path.
The kitty graphics protocol
The second protocol rides the APC escape (ESC _ … ESC \). Its subset:
- Transmission is direct in-band only (
t=d, the default). The file, temp-file, and shared-memory forms (t=f/t=t/t=s) are all refused with one identicalEBADF:Failed to read image fileerror - DropTerm never reads the filesystem or shared memory on the terminal's behalf, and every refusal answers byte-for-byte the same, so nothing about the machine is probeable. - Formats:
f=100andf=24ride the same container decode as OSC 1337 (PNG, JPEG, GIF, WebP under the same ceilings).f=32(the default) is raw RGBA sized bys×v.o=zpayloads are inflated under the same payload cap. - Chunking (
m=1… finalm=0, possibly empty) assembles per image, keyed by the client'si=id - interleaved transmissions each deliver their own. - Actions:
a=Tdisplays at the cursor (the cursor advances below the placement),a=t(the default) transmits without displaying,a=pre-places a transmitted image at the cursor (ap=placement id moves exactly its own cells and reuses its pixels - no flicker; without one, the cells ride the image's own id),a=qqueries,a=ddeletes. - Queries answer byte-exact, and that is how detection works: a test-load (
a=q,i=…) repliesOKwhen the image's pixels stand, the uniform error otherwise.q=1silences OK replies,q=2everything.a=q,e=T(ande=t/e=p/e=d) answers with exactly the keys this implementation honors.kitten icatsends the query and then a DA1. A DA1 answer with no graphics reply means "no support", so every query answers, always before the DA1. - Deletion (
a=d):d=a/Aevery image,d=i<id>/I<id>one image,d=n/Nthe newest,d=c/Cthe visible screen - lowercase removes the placements, uppercase frees the pixels too. Freed cells draw blank, exactly like evicted ones. Region deletes and otherd=values are ignored. - z-index:
z<0draws beneath the glyphs,z≥0above them and below the cursor, overlapping above-layer images compositing by z (the higher on top). An absentzreads as beneath - the drawing OSC 1337 images own - where kitty's own default isz=0(above): a deliberate deviation.
Unknown control keys are ignored per kitty's own spec. Malformed control data drops the sequence whole. Same kill switch, same ceilings, same grid seat: a kitty placement rides the cells exactly like an OSC 1337 one.
Sizing
The width and height arguments accept iTerm2's unit grammar - N cells, Npx pixels, N% of the terminal, or auto (the image's own size, the default). The renderer preserves the aspect ratio whether you give one axis (the other follows) or both (the image fits inside). preserveAspectRatio=0 honors both axes exactly instead. A placement wider than the terminal is cut off on the right, like over-long text - never squeezed.
inline=0 sequences render nothing. In iTerm2 that means "download the file". DropTerm has no download UI and builds none - the sequence is accepted, and that is all.
The honest limits
Every payload is hostile until decoded, so the ceilings come first: an image past any of them renders nothing, never a partial frame:
| Ceiling | Value |
|---|---|
| Payload per sequence | 32 MiB decoded bytes |
| Decode allocation | 64 MiB, dimensions capped at 8192×8192 |
| Total decoded pixels across all images | 320 MiB, oldest evicted |
Evicted images leave their cells blank: the placement stays in the grid, the pixels are gone. Running the command again re-places the image.
No Sixel: DropTerm does not answer Sixel capability queries (DA1 replies without the ;4 bit), so well-behaved emitters fall back to text or their iTerm2 backend rather than sending pixels that would render as garbage. Sixel support is deferred, not spoofed - a terminal that lies about what it can do breaks every tool that trusts it.
Where the caps live
images_enabled is documented with the rest in Configuration. The ceiling numbers are constants - changing one is a one-line patch - recorded in the research log alongside the protocol survey that chose this design.