ansi_hide_cursor

0th

Percentile

Hide/show cursor in a terminal

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

Usage
ansi_hide_cursor(stream = stderr())

ansi_show_cursor(stream = stderr())

ansi_with_hidden_cursor(expr, stream = stderr())

Arguments
stream

The stream of the terminal to output the ANSI sequence to.

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.

Aliases
  • ansi_hide_cursor
  • ansi_show_cursor
  • ansi_with_hidden_cursor
Documentation reproduced from package cli, version 2.0.1, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.