Skip to content

Instantly share code, notes, and snippets.

@hoelzro
Created March 7, 2021 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoelzro/219e906ce524d090fc32203d561bf88a to your computer and use it in GitHub Desktop.
Save hoelzro/219e906ce524d090fc32203d561bf88a to your computer and use it in GitHub Desktop.
local term = require 'term'
term.cursor.save()
for i = 1, 10 do
term.cleareol()
term.cursor.restore()
io.stdout:write(tostring(i))
io.stdout:flush()
os.execute 'sleep 1'
end
print ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment