Despite the fact that there is a much more cross-platform and elegant soul, the following works on Linux, as well as work on other Unixes:
system("clear")
If you are on Windows, this may work (not verified):
system("cls")
If you want to create an application that can update your interface, you can save some kind of array of characters:
colArr=[] columNum.each {colArr<<[]} #fill colArr system("clear") print colArr #Every time you change it, call system("clear") then print colArr
This is pretty manual, but it works for simple TUIs.
source share