wr: Write String to Terminal

Description Usage Arguments Value See Also Examples

View source: R/5-Write.R

Description

Writes a string of characters to the terminal at the current cursor position. wr accepts text colors and attributes, but these are reset to default afterwards if used.

Usage

1
wr(text, fg = NA, bg = NA, attr = NA)

Arguments

text

string to be printed to the Console

fg

foreground color. See fg_on for more details.

bg

background color. See bg_on for more details.

attr

character attribute. See attr_on for more details.

Value

NULL

See Also

Other writing functions: wrat(), wrch(), wrkpl(), wrkp()

Examples

1
2
3
4
mv_to(5,4)
wrch("h")
wrch("e", fg="red")
wr("llo World")

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