powered by
Determine the type of terminal
is_kitty()is_ghostty()
is_ghostty()
Returns TRUE if R is running in a given terminal and FALSE otherwise.
TRUE
FALSE
These functions try to detect if R is running in a given terminal.
if (is_kitty()) { cat("Yeeh, you are running kitty!") } if (is_ghostty()) { cat("Yeeh, you are running ghostty!") }
Run the code above in your browser using DataLab