local function getChars() local termX, termY = term.getCursorPos() while true do local e = {os.pullEvent()} if e[1] == "key" and e[2] == keys.enter then return true elseif e[1] == "char" then term.setCursorPos(termX, termY) term.write(e[2]) termX = termX + 1 end end end local function saveChars() local file = fs.open("test_file", "w") while true do local e = {os.pullEvent()} if e[1] == "key" and e[2] == keys.enter then term.clear() term.setCursorPos(1,1) term.write("Saved the file.") file.close() elseif e[1] == "char" then file.write(e[2]) end end end
But I Noticed You Cant BackSpace? How Would One Achieve That?
[EDIT]
Actaully, I Think I Could Fix This By Just Not Constantly Writing Thanks Anyway Lol
Edited by theMCcm, 29 June 2015 - 02:15 AM.