console.readln([...])function
Reads a line from the console (until the ENTER/ RETURN is pressed). The same result can be obtained using console.stdin:readln()
Parameters
[...]
Optional strings to write to the console before reading, separated by commas. If the argument is not a string, the function converts it internally using the tostring function.
Return value
Returns a string. Please note that the string does not contains the last "\n" character.Example
--! luart-extensions
import console
console.writecolor("cyan", "Enter your name :")
local name = console.readln()
print("Hello "..name:capitalize().." !")