io.Read

From ComputerCraft
Jump to navigation Jump to search

io.read
Function
Syntax
io.read()
Returns string textEntered
API io
Source CC:Tweaked

See read.

Error creating thumbnail: Unable to save thumbnail to destination
ExampleInput text
Asks a user to enter some text
Code
local str = io.read()
Error creating thumbnail: Unable to save thumbnail to destination
ExampleInput password
Inputs a hidden string.
Code
local str = io.read("*")
Error creating thumbnail: Unable to save thumbnail to destination
ExampleAutocomplete+history
Inputs with auto and hist
Code
local str = io.read(nil, {"A"}, function() return "X" end)