ARIF_RL_DISPLAY(3)

πŸ“¦ version 0.3.0, in alpine 3.24

πŸ¦‹ ARIF_RL_DISPLAY(3) πŸ¦‹

okay bestie, welcome to the ARIF User Manual β€” this page is literally all about arif_rl_display, and it is giving β€œReadline completion candidate display” energy. no cap. πŸ’…

✨ NAME ✨

arif_rl_display β€” display Readline completion candidates, periodt. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <arif_rl.h>

void
arif_rl_display (
    struct arif_ctx  *ctx,
    char            **matches,
    int               num,
    int               max_len
);

πŸ‘‘ DESCRIPTION πŸ‘‘

so here is the tea: arif_rl_display() fetches the current page of candidates from the input context ctx, then prints their display text using Readline's rl_display_match_list() function. iconic behavior, honestly. ✨

it is intended to be called from inside a custom Readline rl_completion_display_matches_hook function β€” and when you do, you pass matches, num, and max_len through as-is. no renaming, no remixing, just pass them straight in. 🫢

Copyright (C) 2023  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.

🌈 SEE ALSO 🌈

xoxo, your Unix bestie πŸ’… β€” ARIF_RL_DISPLAY(3), version 0.1.0, dated Jan 02, 2023 🫢✨

πŸ“¦ where this page comes from