HI all, How to clear the screen in R-console? Thanks a lot@! [[alternative HTML version deleted]]
Ctrl+L should work -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Michael Sent: 16 February 2006 10:33 To: R-help at stat.math.ethz.ch Subject: [R] how to clear screen in R-console? HI all, How to clear the screen in R-console? Thanks a lot@! [[alternative HTML version deleted]] ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
ctrl - e & l>HI all, > >How to clear the screen in R-console? > >Thanks a lot@! > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > > >
have already tried this? http://finzi.psych.upenn.edu/R/Rhelp02a/archive/55752.html m.> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Michael > Sent: Thursday, February 16, 2006 9:23 PM > To: Henrik Bengtsson > Cc: R-help at stat.math.ethz.ch > Subject: Re: [R] how to clear screen in R-console? > > I am actually using Rgui on Windows... > > What can I do? > > There is no way to programmatically clear screen? >
On Thu, 16 Feb 2006, Henrik Bengtsson wrote:> On 2/16/06, Michael <comtech.usa at gmail.com> wrote: > > > On 2/16/06, Christian Schulz <ozric at web.de> wrote: > > > > > > >How to clear the screen in R-console? > > > > > > ctrl - e & l > > > > Any funcation that is callable from my program, instead of > > pressing keys? > > depends on what type of terminal you are running. For example, if you > run R in a VT100 terminal, you can try > > cat("The following VT100 escape sequence will clear the screen on a > VT100 terminal\n") > cat("\033[2J") # <ESC>[2J == Clear Screen > cat("If the screen was cleared you should only see this sentence.\n") > > i.e. > > vt100ClearScreen <- function(...) cat("\033[2J") >On my terminal, this required the addition of cursor homing to replicate the effects of using the OS to clear the screen. system_cls <- function() system("clear") vt100_cls <- function() cat("\033[2J\033[H") ---------------------------------------------------------- SIGSIG -- signature too long (core dumped)