bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] tab completion


From: Chet Ramey
Subject: Re: [Bug-readline] tab completion
Date: Tue, 2 Sep 2008 09:50:46 -0400

> hi,all
> I am new to use readline .i want to implement tab comletion on arguments
> for example
> > software + space + TAB
> It can list software arguments {install,uninstall} and so on
> Now i already impletment command in first level
> 
> is that right to use rl_completion_entry_function pointer?
> how to get the first level value when i implement second leve tab
> completion

Check out how bash does it (bashline.c in the bash distribution).  There's
also a simple example in the readline source distribution (examples/fileman.c)
that shows what you need to do.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://tiswww.tis.case.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]