powered by
Determine if terminal supports Sixel
has_sixel_support(warn = FALSE, throw = FALSE)
Returns TRUE if the current terminal supports the Sixel and FALSE otherwise. Will also return FALSE when not running in a terminal.
TRUE
FALSE
show warnings when the protocol is not supported.
throw an error when we are running in a kitty terminal.
if (has_sixel_support()) { cat("Yeeh, your terminal supports the sixel!") }
Run the code above in your browser using DataLab