Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How Do You Clear The IRB Console?

On *nix boxes

`clear`

on Windows

system 'cls' # works
`cls` # does not work

on OSX

system 'clear' # works
`clear` # does not work

On Mac OS X or Linux you can use Ctrl + L to clear the IRB screen.


Throw this inside %userprofile%\.irbrc and you're good

def cls
  system('cls')
end

From IRB clear screen on windows.


Command + K in macOS works great.

Tags:

Ruby

Irb

Related

java get file size efficiently String vs string C compiler for Windows? What is the difference between vmalloc and kmalloc? ArrayList in Java and inputting How do I kill a process using Vb.NET or C#? How do I ignore a directory with SVN? What is the best way to embed LaTeX in a webpage? How can I add an empty directory to a Git repository? How do I get the title of the current active window using c#? Recommended Python publish/subscribe/dispatch module? Storing C++ template function definitions in a .CPP file

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy