如何清除IRB控制台屏幕?
发布于 2008-09-22 18:25:26
把这个放到%userprofile%\.irbrc里面,你就很棒了
def cls
system('cls')
end来自IRB clear screen on windows。
发布于 2008-09-22 18:27:23
在*nix框上
`clear`在Windows上
system 'cls' # works
`cls` # does not work在OSX上
system 'clear' # works
`clear` # does not work发布于 2011-12-06 23:55:55
在Ubuntu11.10系统上,clear将主要清除irb窗口。您将得到一个打印的返回=> True值。
一大堆丑陋的文字
ruby-1.9.2-p290 :007 > system 'clear'你会得到什么:
=> true
ruby-1.9.2-p290 :007 > https://stackoverflow.com/questions/116593
复制相似问题