Mark Halverson5,749 Points
Control + l (lowercase L) will clear the screen in IRB Workspaces (Windows or Mac)
Also In mac, for screen clear for terminal or IRB is [CMD + k]
Valentin Famelart19,190 Points
Just to complete the statement,
CTRL + L is a terminal command that empties the buffer. This shortcut works in all terminal emulators that matches Unix behavior (as a reminder MacOS is based on Unix) . There is no (for now) such thing in Windows other than issuing the
cls command. Which, because it is a command, is added to the command history. (There are alternatives to Windows' lack of features CMD, if you would prefer having Unix functionnalities)
While on windows, it usually just scrolls the terminal, on Unix, the buffer will be emptied, meaning that what you're seeing on the terminal will not be visible if you scroll back up.