rl()
Read a single line from the terminal with prompt displayed
rl(prompt = "")
prompt (string, optional) — The prompt to be displayed
string|nothing — Returns the inputted string, or returns nothing if rl() is interrupted by a Ctrl+C keypress or by a SIGINT signal
import rl
line = rl("Insert text: ")
writeln(line)