clear {cursr}R Documentation

Clear Text

Description

Clear text from the terminal. Passing values "start" or "end" allow the user to clear specific portions of the screen relative to the cursor.

Usage

clear(x = c("screen", "end", "start"), ...)

Arguments

x

character describing console location to clear. The default, "screen", clears the entire screen; "start" clears all text from the beginning of the screen until the cursor's position; "end" clears all text from the cursor's position to the bottom of the screen.

...

objects passed to/from methods

Value

NULL

Examples

clear()

cat(paste(LETTERS[1:10], collapse="\n"))

clear("start")
clear("end")


[Package cursr version 0.1.0 Index]