EC_EDITLINE_SET_PROMPT(3)
π EC_EDITLINE_SET_PROMPT β bestie, let's set that prompt π
okay so this is a page from the Libecoli Programmer's Manual, section 3 (EC_EDITLINE_SET_PROMPT(3)), and it's genuinely such a small iconic little function. it does ONE thing. it slays at that one thing. periodt. β¨
β¨ NAME β¨
ec_editline_set_prompt β Set editline prompt.
like. that's it. that's the whole job. and honestly? she ate. π
πΈ SYNOPSIS πΈ
#include <ecoli/editline.h>
int ec_editline_set_prompt(
struct ec_editline *editline, /* The pointer to the ec_editline structure. */
const char *prompt /* The prompt string to use. */
);
so you pull in the header <ecoli/editline.h>, and then you call the function with two things:
- a pointer to the
ec_editlinestructure β like, which editline are we talking about bestie, there could be several π - the
promptstring you wanna use β the lil' text that shows up in front of the cursor
that's the vibe check. two args. no drama. π¦
π RETURN VALUE π
0β success, we did it, we're so back π₯-1β error, and not in the fun way π
π SEE ALSO π
the whole friend group, fr fr β go read these too:
ec_editline_get_el(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_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)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page bestie, no cap. this manual page came from libecoli, dated 2026-06-11, and it lives at EC_EDITLINE_SET_PROMPT(3) β so go forth and set those prompts, main character energy only π«Άπβ¨
π¦ 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