c - Calling readline()'s Tab Completion Directly -
i know if want tab completion can use
char *readline (const char *prompt);
and i'll tab completion while it's running, if have string want completed? there specific function in readline library can call directly , send string parameter have run tab completion on it?
i've read through lot of source code of complete.c find main function send string no luck.
i don't know c side api lives, bash side calling of stuff, compgen
can accept "partial" input.
the main problem "partial" input typically provided shell scripts located in /usr/share/bash-completion/completions/"program", there chance seek not "c api" output of 1 or more bash scripts.
Comments
Post a Comment