Skip to content

text_input_next

Remove and return one typed character, or nil when the queue is empty. Available as text_input_next after import_globals() or mv.input.text_input_next.

Takes no arguments.

while true do
local ch = text_input_next()
if not ch then break end
print(ch)
end

Related: key.

See the keyboard guide for more examples and limits.