io.Read

From ComputerCraft
Jump to: navigation, search

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

See read.

ExampleExampleInput text
Asks a user to enter some text
Code
local str = io.read()
ExampleExampleInput password
Inputs a hidden string.
Code
local str = io.read("*")
ExampleExampleAutocomplete+history
Inputs with auto and hist
Code
local str = io.read(nil, {"A"}, function() return "X" end)