erase: Erase Text

Description Usage Arguments Value Examples

View source: R/1-BasicTerminal.R

Description

Clear text from the cursor's row . Passing values "start" and "end" allow the user to erase specific portions of the row relative to the cursor.

Usage

1
erase(x = c("row", "start", "end"), ...)

Arguments

x

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

...

objects passed to/from methods

Value

NULL

Examples

1
2
cat('hello world!')
erase('row')

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