On 4/12/16 3:33 AM, Antonio Ceballos wrote:
> I want to use the readline library in a command-line C program, and I want
> custom autocomplete. The program is always waiting for user input and it
> accepts some commands. Tab-based autocomplete is working fine for my
> commands, but I have not been able to get rid of file name completion.
> Hence, if the user types a dot or the first two letters of an existing
> file, file name completion is performed. Could you please tell me how to
> disable file name autocomplete while keeping my custom autocomplete?

@deftypevar int rl_attempted_completion_over
If an application-specific completion function assigned to
@code{rl_attempted_completion_function} sets this variable to a non-zero
value, Readline will not perform its default filename completion even
if the application's completion function returns no matches.
It should be set only by an application's completion function.
@end deftypeva


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    [email protected]    http://cnswww.cns.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to