View source: R/has_tgp_support.R
has_tgp_support | R Documentation |
Determine if terminal supports Terminal Graphics Protocol
has_tgp_support(warn = FALSE, throw = FALSE)
warn |
show warnings when the protocol is not supported. |
throw |
throw an error when we are running in a kitty terminal. |
Returns TRUE
if the current terminal supports the Terminal Graphics
Protocol and FALSE
otherwise. Will also return FALSE
when not
running in a terminal.
if (has_tgp_support()) {
cat("Yeeh, your terminal supports the terminal graphics protocol!")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.