gnu_new#

Construct a Term::ReadLine::Gnu object, wiring $NAME into rl_readline_name for inputrc dispatch.

Synopsis#

my $term = Term::ReadLine->new('myprog');
my $term = Term::ReadLine::Gnu->new('myprog', $IN, $OUT);

The returned object is a blessed reference to the tied %Attribs hash, so reads and writes of $term->Attribs->{rl_point} go straight to readline’s globals. Calling new also initialises libreadline — no separate rl_initialize is needed afterwards.