EC_INTERACT_SET_DESC(3)
π EC_INTERACT_SET_DESC π
okay bestie, welcome to the Libecoli Programmer's Manual β¨ this one's a lil function from the libecoli crew and it's genuinely so useful, no cap.
πΈ NAME πΈ
ec_interact_set_desc β set the short description of a grammar node. that's it. that's the job. π
π¦ SYNOPSIS π¦
#include <ecoli/interact.h>
int ec_interact_set_desc(
struct ec_node *node, /* The ec_node on which to add the desc attribute. */
const char *desc /* The short description string. */
);
likeβ¦ look at her. two little args and a dream. π«Ά
β¨ DESCRIPTION β¨
so what she does is: she sets the node attribute EC_INTERACT_DESC_ATTR on the node, and that attribute holds the string you passed in as desc. easy. iconic. no drama. π
and why do we care?? because the ec_interact functions read that attribute to display the short description of the contextual help β and the way it works, it overrides the value that ec_node_desc() would have given you. so if you wanna be the main character and decide what the help text says yourself, this is your girl. π
heads up bestie: this is a short description we're talking about β it's the one that shows up in contextual help. keep it cute and brief. π
π RETURN VALUE π
0β success, slay, we ate π β¨-1β error, we are NOT okay π
π SEE ALSO π
the whole friend group, fr fr:
ec_interact_get_completions(3)ec_interact_print_helps(3)ec_interact_print_error_helps(3)ec_interact_print_cols(3)ec_interact_set_help(3)ec_interact_append_chars(3)ec_interact_get_callback(3)ec_interact_set_callback(3)ec_interact_get_error_helps(3)ec_interact_free_completions(3)ec_interact_get_helps(3)ec_interact_free_helps(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page, bestie!! this was libecoli, dated 2026-06-11, page EC_INTERACT_SET_DESC(3) β go set some descriptions and be the main character of your own help output πβ¨π¦
π¦ 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