term_width: Get the with of the terminal window in pixels

View source: R/term_width.R

term_widthR Documentation

Get the with of the terminal window in pixels

Description

Get the with of the terminal window in pixels

Usage

term_width()

Value

An integer with the number of pixels the terminal is wide This value can be zero when the terminal does not support querying the size. Under windows the return value will always be zero as querying the size depends on POSIX support.

See Also

term_height for the terminal height and term_dim for all dimensions including the dimensions in rows and columns.


terminalgraphics documentation built on Aug. 28, 2025, 9:09 a.m.