Learn R Programming

terminalgraphics (version 0.1.1)

term_dim: Get the dimensions of the terminal window in pixels

Description

Get the dimensions of the terminal window in pixels

Usage

term_dim()

Arguments

Value

An integer vector with the width and height of the terminal in pixels (x_pixels and y_pixels) and the number of text columns and rows in the terminal window (columns and rows).

These values can be zero when the terminal does not support querying the size. Some terminals only support querying the number of columns and rows. Under windows the return value will always be zero as querying the size depends on POSIX support.

See Also

term_width and term_height for only obtaining the width and height in pixels respectively.