ReadLine without completion?
From: Juman (juman_at_chello.se)
Date: 09/27/04
- Previous message: Christian Stalp: "simple socket error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Sep 2004 13:05:29 +0200 To: beginners@perl.org
I am writing a simple application and wnat to use the readline library.
But pressing the 'tab' key as I normally do it does a tab-jump and not a
word completion as readline should... or?
My sample application:
#!/usr/bin/perl
use strict;
use Term::ReadLine;
my $term = new Term::ReadLine 'qdiary';
my $attribs = $term->Attribs;
$attribs->{completion_entry_function} = $attribs->{list_completion_function};
$attribs->{completion_word} = [qw(a word for your thoughts)];
my $line = $term->readline('qdiary: ');
print "$line\n";
- Previous message: Christian Stalp: "simple socket error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|