EC_EDITLINE_COMPLETE(3)
π 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_REFRESHCC_ERRORCC_REDISPLAY
periodt. those are the only ones. π
π SEE ALSO π
the whole friend group, fr fr:
ec_editline_get_el(3)ec_editline_set_prompt(3)ec_editline_set_prompt_esc(3)ec_editline_parse(3)ec_editline_free(3)ec_editline_term_size(3)ec_editline_gets(3)ec_editline_interact(3)ec_editline_set_node(3)ec_editline_set_history(3)ec_editline(3)ec_editline_get_node(3)ec_editline_curline(3)
go read them, they don't bite ππ
π COPYRIGHT π
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
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms