Skip to content
Prev 246398 / 398502 Next

Page eject and clearing the console

On Jan 4, 2011, at 1:27 PM, David Winsemius wrote:

            
It has occurred to me that you may be asking for something that will  
give the illusion of "clearing the screen" but will in fact be just  
"printing" a page of blank space on a console display, scrolling would  
ahve been the name I would have given it. In which case:

scroll <- function(lines=40) cat(rep("\n", lines))
scroll()
David Winsemius, MD
West Hartford, CT