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

wrch

Write Character to Terminal


Description

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

Usage

wrch(chr, fg = NA, bg = NA, attr = NA)

Arguments

chr

character 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(), wrkpl(), wrkp(), wr()

Examples

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

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.