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

wrchat

Write Character to Terminal at Specified Location


Description

Move cursor to specified location in the terminal screen, then print the supplied character. This function will only work in terminal, not the RStudio Console or R GUI.

Usage

wrchat(row, col, chr, ...)

Arguments

row

row in which character is printed. If length of row is greater than one, the second value replaces col.

col

column in which character is printed

chr

character to be printed to the Console

...

parameters that are passed to style(), including the foreground color fg, background color bg, and attribute attr

Details

The coordinates are given in matrix notation: (row, column), with the top-left corner of the screen being (1,1).

Value

NULL

Examples

wrchat(5, 4, "h")

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.