Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

clear

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")

cursr

Cursor and Terminal Manipulation

v0.1.0
MIT + file LICENSE
Authors
Chris Mann
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.