Description Usage Arguments Details Value Author(s) Examples
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()
.
1 2 | ## Default S3 method:
getTerminalInfo(rows=NULL, columns=NULL, ...)
|
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. |
Internally, the system command 'stty' is tried by system()
.
If it fails, the default values are returned.
Returns a named list
of terminal properties.
Henrik Bengtsson
1 2 | rows <- getTerminalInfo()$rows
cols <- getTerminalInfo()$columns
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.