printc(" ")
while true do
local ch = io.getchar()
-- skip if ch == -1... don't know what to do with that.
if ch == -1 then
goto continue
end
if ch == core.KEY_ENTER then
break
str = str .. string.char(ch)
::continue::
return str