wrchat {cursr}R Documentation

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


[Package cursr version 0.1.0 Index]