ReadLine without completion?

From: Juman (juman_at_chello.se)
Date: 09/27/04

  • Next message: Jenda Krynicky: "Re: simple socket error"
    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";


  • Next message: Jenda Krynicky: "Re: simple socket error"

    Relevant Pages

    • Re: Excel 2003 -- where is the index in help?
      ... It's the same way in 2000, 2003 doesn't have a tab for 'index' after ... pressing F1, though all the help is there because you can search (but takes ... >> automatically jump down to the closest matches. ...
      (microsoft.public.excel)
    • Re: Indenting a bullet list in a table cell.
      ... Word MVP FAQ site: http://word.mvps.org ... > Pressing Tab takes the insertion point to the next cell of the table. ...
      (microsoft.public.word.tables)
    • Re: file with no name -- cannot be deleted
      ... But it seems to be an empty string. ... In the python interpreter, I got: ... pressing the tab button? ...
      (Ubuntu)
    • Indenting a bullet list in a table cell.
      ... In "plain text" with a bullet list, pressing the tab key will indent ... Pressing Tab takes the insertion point to the next cell of the table. ...
      (microsoft.public.word.tables)
    • Re: ENTER in Formatted Memo Field...?
      ... If the Memo field is NOT in Edit mode, ... pressing Enter is like pressing Tab... ... causes you to move to the next tab stop. ... If you ARE in Edit mode, ...
      (comp.databases.paradox)