NAME
arif_rl_enable - setup Readline for ARIF
SYNOPSIS
#include <arif_rl.h>
void
arif_rl_enable (
rl_completion_func_t *complete_func,
rl_compdisp_func_t *display_func,
char const *word_break_chars
);
DESCRIPTION
The arif_rl_enable() function enables using Readline as an ARIF frontend. If already enabled, function behavior is undefined.
The function updates several Readline completion variables. Some of them shall be provided by the caller:
| Readline Completion Variable | Replacement |
| rl_attempted_completion_function | complete_func |
| rl_completion_display_matches_hook | display_func |
| rl_completer_word_break_characters | word_break_chars |
The complete_func and display_func functions shall be implemented using arif_rl_complete(3) and arif_rl_display(3), accordingly.
Original values of the Readline completion variables are saved before updated, so that they could be restored later by calling arif_rl_disable(3).
COPYRIGHT
Copyright (C) 2025 CismonX <admin@cismon.net>
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
You should have received a copy of the license along with this document. If not, see https://www.gnu.org/licenses/fdl-1.3.html.