Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = ""
- while true do
- shell.run("clear")
- print(s)
- local event, character = os.pullEvent()
- if event == "char" then
- s = s..character
- end
- if event == "key" and character == 14 then
- s=string.sub(s,1,#s-1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment