R/kitty_width.R

Defines functions kitty_width

Documented in kitty_width

#' Get the with of the terminal window in pixels
#'
#' @return
#' An integer with the number of pixels the terminal is wide.
#'
#' @export
kitty_width <- function() {
  kitty_dim()[1] |> as.vector()
}
djvanderlaan/kitty.r documentation built on Feb. 2, 2025, 9:12 p.m.