In python this works:
clear = lambda: os.system('cls') clear()
How would I do that in scala?
How about print("\u001b[2J")?
print("\u001b[2J")