Learn R Programming

terminalgraphics (version 0.2.1)

is_kitty: Determine the type of terminal

Description

Determine the type of terminal

Usage

is_kitty()

is_ghostty()

Arguments

Value

Returns TRUE if R is running in a given terminal and FALSE otherwise.

Details

These functions try to detect if R is running in a given terminal.

Examples

Run this code
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