Previous section To contents Next section

9.7 Simple input-by-prompt - Stdio.Readline

CLASS
Stdio.Readline

METHOD
Stdio.Readline.create - init readline

SYNTAX
object(Stdio.Readline) Stdio.Readline();
or
object(Stdio.Readline) Stdio.Readline(object infd);
or
object(Stdio.Readline) Stdio.Readline(object infd,
object|string interm);

or
object(Stdio.Readline) Stdio.Readline(object infd,
object|string interm,
object outfd);

or
object(Stdio.Readline) Stdio.Readline(object infd,
object|string interm,
object outfd,
object|string outterm);

DESCRIPTION
Creates a Readline object, that takes input from infd, and has output on outfd.

infd defaults to Stdio.stdout.

interm defaults to Stdio.Terminfo.getTerm().

outfd defaults to infd, unless infd is 0, in which case outfd defaults to Stdio.stdout.

outterm defaults to interm.


Previous section To contents Next section