getTerminalInfo: Gets information about the terminal in which [R] is running

Description Usage Arguments Details Value Author(s) Examples

Description

Gets information about the terminal in which [R] is running. Currently only the number of rows and columns of the terminal is returned.

This function is used by for instance more().

Usage

1
2
## Default S3 method:
getTerminalInfo(rows=NULL, columns=NULL, ...)

Arguments

rows

Default value of number of rows in it failed to retrieve the information from the system.

columns

Default value of number of columns in it failed to retrieve the information from the system.

...

Not used.

Details

Internally, the system command 'stty' is tried by system(). If it fails, the default values are returned.

Value

Returns a named list of terminal properties.

Author(s)

Henrik Bengtsson

Examples

1
2
  rows <- getTerminalInfo()$rows
  cols <- getTerminalInfo()$columns

HenrikBengtsson/R.basic documentation built on May 6, 2019, 11:51 p.m.