ansi_hide_cursor: Hide/show cursor in a terminal

Description Usage Arguments Details See Also

View source: R/tty.R

Description

This only works in terminal emulators. In other environments, it does nothing.

Usage

1
2
3
4
5
ansi_hide_cursor(stream = "auto")

ansi_show_cursor(stream = "auto")

ansi_with_hidden_cursor(expr, stream = "auto")

Arguments

stream

The stream to inspect or manipulate, an R connection object. It can also be a string, one of "auto", "message", "stdout", "stderr". "auto" will select stdout() if the session is interactive and there are no sinks, otherwise it will select stderr().

expr

R expression to evaluate.

Details

ansi_hide_cursor() hides the cursor.

ansi_show_cursor() shows the cursor.

ansi_with_hidden_cursor() temporarily hides the cursor for evaluating an expression.

See Also

Other low level ANSI functions: ansi_has_any(), ansi_regex(), ansi_strip()


RonMobile/cli documentation built on Dec. 18, 2021, 11 a.m.