Irb > HowTo / Can I > ClearScreen?

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/.

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?

I use Ctrl-L, but technically that's cheating; I think it's part of
Unix rather than part of IRB. So it may not work on Windows.

···

--
Giles Bowkett

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

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 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 :slight_smile:

···

--
Posted via http://www.ruby-forum.com/\.