Learn R Programming

terminalgraphics (version 0.1.1)

raster2tgp: Dump an image raster to the terminal using the Terminal Graphics Protocol

Description

Dump an image raster to the terminal using the Terminal Graphics Protocol

Usage

raster2tgp(raster, compress = TRUE)

Value

Called for it's side effect of writing the image to the terminal (standard out). Returns NULL invisibly.

Arguments

raster

the image 'raster' e.g. the output of as.raster.

compress

compress the data before sending to the terminal.

Details

The Terminal Graphics Protocol is not supported by many Terminal Emulators. The most notable terminal emulator supporting the protocol is Kitty.

See Also

See raster2sixel for output in Sixel format. See png2terminal for writing a PNG image to the terminal.