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.
As mentioned in the other reply, you can use os.execute() to clear the console. However, if you do not have access to this function, then you might be forced to spam the console with new lines, so it seems "empty" to the user.
However, if you are able to use os.execute, then you should definitely use it.
for i = 1, 255 do
print()
end