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?
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 B.
Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com
Giles B. 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.
Shin guey Wong wrote:
Giles B. 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