console.readln ( )
Reads a line from the console (until a the ENTER/RETURN key has been pressed). The same result can be obtained using console.stdin:readln().Return value
Returns a string. Please note that the string does not contains the last "\n" character.Example
local console = require "console"
console.writecolor("cyan", "Enter your name :")
local name = console.readln()
print("Hello "..name:capitalize().." !")