EC_EDITLINE_GETS(3)
πΈ EC_EDITLINE_GETS π
okay bestie, so this one's from the Libecoli Programmer's Manual, it's a section 3 page, and it's literally just the cute little interactive-line-getter. tiny page, huge vibes. let's go β¨
β¨ NAME β¨
ec_editline_gets β grab a line interactively (with completion, obviously π
)
π SYNOPSIS π
#include <ecoli/editline.h>
char * ec_editline_gets(
struct ec_editline *editline /* The pointer to the ec_editline structure. */
);
π¦ DESCRIPTION π¦
so this is a lil wrapper around libedit's el_gets(). that's the whole personality ngl.
what it does: it hands you back the edited line without its "0, and then it drops that line into the history. so like, you get the line, history gets the line, everybody's happy π«Ά
β RETURN VALUE β
you get back an allocated string holding the edited line. and bestie, listen β the caller has to free it with free(). no cap. it's yours now, you clean it up, that's the rule π
π SEE ALSO π
the whole friend group, in order:
ec_editline_get_el(3)ec_editline_set_prompt(3)ec_editline_complete(3)ec_editline_set_prompt_esc(3)ec_editline_parse(3)ec_editline_free(3)ec_editline_term_size(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)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, periodt. this version came from libecoli, dated 2026-06-11, and yeah it's page EC_EDITLINE_GETS(3) β mwah, iconic, bye bestie π
πβ¨
π¦ 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