has_sixel_support: Determine if terminal supports Sixel

View source: R/has_sixel_support.R

has_sixel_supportR Documentation

Determine if terminal supports Sixel

Description

Determine if terminal supports Sixel

Usage

has_sixel_support(warn = FALSE, throw = FALSE)

Arguments

warn

show warnings when the protocol is not supported.

throw

throw an error when we are running in a kitty terminal.

Value

Returns TRUE if the current terminal supports the Sixel and FALSE otherwise. Will also return FALSE when not running in a terminal.

Examples

if (has_sixel_support()) {
  cat("Yeeh, your terminal supports the sixel!")
}


terminalgraphics documentation built on Aug. 28, 2025, 9:09 a.m.