I\'m making my first Lua program with the console, and I need to find out how to remove all the text in the console without just appending a ton of \\n\'s.
If your console understands ANSI terminal escape sequences, try io.write("\027[H\027[2J").
io.write("\027[H\027[2J")