EC_EDITLINE_SET_PROMPT(3)

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

πŸ’– 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_editline structure β€” like, which editline are we talking about bestie, there could be several πŸ‘€
  • the prompt string 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:


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