bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] Help how to disable file name autocomplete


From: Chet Ramey
Subject: Re: [Bug-readline] Help how to disable file name autocomplete
Date: Tue, 12 Apr 2016 10:05:21 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

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    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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