EC_EDITLINE_COMPLETE(3)

πŸ“¦
version 0.11.7 Β· 5 versions
, in fedora 44

πŸ’… EC_EDITLINE_COMPLETE(3) πŸ’…

okay bestie, so this is a page from the Libecoli Programmer's Manual, and it's literally all about ec_editline_complete β€” the default completion callback that editline uses. yes, THE default one. she's the moment. πŸŽ€


✨ NAME ✨

ec_editline_complete β€” the default completion callback that editline uses. that's it, that's the girl. πŸ’–


🌸 SYNOPSIS 🌸

#include <ecoli/editline.h>

int ec_editline_complete(
    struct editline   *el,  /* The pointer to libedit Editline structure. */
    int                c    /* The character used to complete. */
);

so you include <ecoli/editline.h>, and then ec_editline_complete takes two things:

  • el β€” The pointer to libedit Editline structure. like, the whole editline situation.
  • c β€” The character used to complete. the character doing the completing, iykyk.

and it hands you back an int. cute. πŸ¦‹


🫢 DESCRIPTION 🫢

bestie listen. this function:

  • shows you the list of completions when you hit TAB πŸ‘‘
  • shows you contextual help when you hit ? ✨

that's the whole vibe. it's giving "here are your options, and also here's some help if you're confused." no cap.


πŸ’€ RETURN VALUE πŸ’€

it returns an editline error code, and it's one of exactly three:

  • CC_REFRESH
  • CC_ERROR
  • CC_REDISPLAY

periodt. those are the only ones. πŸ’…


🌈 SEE ALSO 🌈

the whole friend group, fr fr:

go read them, they don't bite πŸ›πŸ’œ


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


and that's the tea πŸ“ this page came from libecoli, dated 2026-06-11, and if you ever need her again just yell man 3 EC_EDITLINE_COMPLETE β€” she'll be right there. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from