carbonian.org / manual pages
CARBONIAN-VIEW(1) Carbonian Manual CARBONIAN-VIEW(1)

carbonian-view - images and Markdown in the terminal, drawn with sixel

carbonian-view FILE [FILE...]

Shows images and Markdown files in the terminal (foot, and tmux 3.8) as sixel pictures, on the alternate screen like less(1): nothing enters tmux's scrollback, and the page is drawn again when the pane is resized.

An image (png, jpg, gif, webp, bmp, tiff) is one page, fitted to the window keeping its proportion (it also enlarges, up to four times), centred, with a line that says the format, the size in pixels, the size of the file and the size shown. A Markdown file is a run of pages: the text drawn by glow(1) at the window's width, and each local image of the file (![alt](path), relative to the file) on a page of its own, where it would be. An image on the web (an http or https URL, in the file or on the command line) is fetched only after you say so: the page asks (y this image, s this site for this run, a this site always, n not now), and see view.conf(5). Another kind of link or a missing file stays in the text. Without glow the text is shown as it is.

next page
previous page
a line of text
a screen of text; Space goes on to the next page at the end
first, last page
leave

A 3D plot made by carbonian-notebook (a matplotlib figure: its picture has a .fig3d file beside it) can be turned in the viewer. The page says Enter: turn the 3D plot; Enter grabs it, and until it is let go the keys are the plot's, not the pages'. The picture is drawn again at each new view; keys and mouse events that arrive together are added up and drawn as one frame. Every frame has the full size and replaces the last one only when it is done.

turn: left and right change the azimuth, up and down the elevation (5 degrees a key)
drag with the left button to turn, the wheel zooms (the terminal must report the mouse; tmux needs the pane's program to ask for it, which it does)
+, -
zoom in, out
back to the view the figure had
spin by itself (any key turns it off again with a)
let go: the arrows change pages again
leave the viewer

Only a .fig3d of your own, not writable by others nor by a group that is not yours, is opened, because it is a pickle and a pickle runs code. R figures and the pictures saved in a notebook file have no .fig3d and stay pictures.

colours of the sixel picture (256).
WxH pixels: the box a picture is fitted to, instead of the pane's size minus the two status rows (to test a smaller pane; the same variable as for the matplotlib backend).

view.conf(5), carbonian-notebook(1), glow(1), tmux(1)

Carbonian