Irb > HowTo / Can I > ClearScreen?

Discussion in 'Ruby' started by Ken A., Dec 28, 2007.

  1. Ken A.

    Ken A. Guest

    Hi. When in terminal/cmd in case I need to clear screen I can type 'cls'
    (windows) ... the question I have is, once in IRB, is there a similar
    command?
    --
    Posted via http://www.ruby-forum.com/.
    Ken A., Dec 28, 2007
    #1
    1. Advertising

  2. Giles Bowkett, Dec 28, 2007
    #2
    1. Advertising

  3. Giles Bowkett wrote:
    >> Hi. When in terminal/cmd in case I need to clear screen I can type 'cls'
    >> (windows) ... the question I have is, once in IRB, is there a similar
    >> command?

    >


    You can use system('cls'), `cls` seems like got problem on windows.
    --
    Posted via http://www.ruby-forum.com/.
    Shin guey Wong, Dec 28, 2007
    #3
  4. Ken A.

    Ken A. Guest

    Shin guey Wong wrote:
    > Giles Bowkett wrote:
    > You can use system('cls'), `cls` seems like got problem on windows.


    Ok ... system('cls') works fine on Windows, but unfortunately Ctrl-L
    doesn't.

    Thanx all for the tips :)
    --
    Posted via http://www.ruby-forum.com/.
    Ken A., Dec 28, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gavin Sinclair

    Can a program be made to drop into irb?

    Gavin Sinclair, May 4, 2004, in forum: Ruby
    Replies:
    8
    Views:
    155
    Gavin Sinclair
    May 4, 2004
  2. Sam Stephenson
    Replies:
    1
    Views:
    225
    Andrew Walrond
    Jun 18, 2005
  3. Replies:
    1
    Views:
    156
    Florian GroƟ
    Oct 26, 2005
  4. anne001
    Replies:
    1
    Views:
    268
    anne001
    Jun 27, 2006
  5. Replies:
    2
    Views:
    113
    Sebastian Hungerecker
    Feb 2, 2008
Loading...

Share This Page