io.Read

io.read
Function
Syntax
io.read(
  • typingCharacter? : string
  • history? : table
  • autocomplete? : function
)

Returns string textEntered
API io
Source CC:Tweaked

See read.

ExampleInput text
Asks a user to enter some text
Code
local str = io.read()
ExampleInput password
Inputs a hidden string.
Code
local str = io.read("*")
ExampleAutocomplete+history
Inputs with auto and hist
Code
local str = io.read(nil, {"A"}, function() return "X" end)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.