ec_editline_gets - Man Page
Get a line interactively (with completion).
Synopsis
#include <ecoli/editline.h>
char * ec_editline_gets(
struct ec_editline *editline /* The pointer to the ec_editline structure. */
);Description
Wrapper to libedit el_gets(). It returns the edited line without its "0, and adds it to the history.
Return Value
An allocated string containing the edited line, that must be freed by the caller using free().
See Also
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.
Referenced By
ec_editline(3), ec_editline_complete(3), ec_editline_curline(3), ec_editline_free(3), ec_editline_get_el(3), ec_editline_get_node(3), ec_editline_interact(3), ec_editline_parse(3), ec_editline_set_history(3), ec_editline_set_node(3), ec_editline_set_prompt(3), ec_editline_set_prompt_esc(3), ec_editline_term_size(3).