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: Antonio Ceballos
Subject: Re: [Bug-readline] Help how to disable file name autocomplete
Date: Wed, 20 Apr 2016 16:25:28 +0200

My apologies for the late reply---had to move to a different thing. That was exactly what I was looking for! Thanks a lot.

Cheers,
Antonio


On Tue, Apr 12, 2016 at 4:05 PM, Chet Ramey <address@hidden> wrote:
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]