io.Read
io.read Function | |
---|---|
Syntax io.read(
| |
Returns | string textEntered |
API | io |
Source | CC:Tweaked |
See read.
|
|||
Asks a user to enter some text | |||
Code | local str = io.read()
|
|
|||
Inputs a hidden string. | |||
Code | local str = io.read("*")
|
|
|||
Inputs with auto and hist | |||
Code | local str = io.read(nil, {"A"}, function() return "X" end)
|
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CC:Tweaked |
|
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.