Write At a Specific Location
Move cursor to specified location in the terminal screen, then print the supplied text. This function will only work in terminal, not the RStudio Console or R GUI.
wrat(yx, text, ...)
The coordinates are given in matrix notation: (row, column)
, with the top-left corner of the screen being (1,1)
.
NULL
wrat(c(10,6), "CURSR") wrat(c(4,1), "Hello World!", fg="red", attr=c("bf", "ul")) mat <- rbind(c(5,2), c(10,5), c(1,19)) wrat(mat, "HI", fg="yellow")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.