clear: Clear Text

Description Usage Arguments Value Examples

View source: R/1-BasicTerminal.R

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

1
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

1
2
3
4
5
6
clear()

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

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

cursr documentation built on Jan. 13, 2021, 7:35 a.m.