Skip to main content

ATTACHMENT_SHOW

Constant ATTACHMENT_SHOW 

Source
pub const ATTACHMENT_SHOW: &str = "\
Draw an image attachment in the terminal.

```
ytcli attachment show PROJ-1 29
```

Works in Kitty, Ghostty, WezTerm and iTerm2, which is where the terminal says
so itself; a multiplexer counts as no, because it can inherit those markers
without passing the graphics through.

Anywhere else — another terminal, a pipe, a non-image file, or a format the
protocol cannot carry — prints what the file is and the `attachment download`
command that puts it somewhere openable. There is always a next step, and it is
never a screenful of escape codes.

`--format json` describes the attachment. It never emits pixels.";