Share completion and add SSH line editing

This commit is contained in:
2026-08-30 22:45:58 +02:00
parent 2f383cd283
commit 21d1b12f31
5 changed files with 180 additions and 60 deletions
+7
View File
@@ -12,6 +12,13 @@ extern "C" {
/* Install late-terminal upgrade handling and project-specific completion. */
void console_completion_install(void);
typedef bool (*console_completion_visitor_t)(const char *candidate, void *context);
/* Visit the same matching hint candidates used by both UART0 and admin SSH. */
void console_completion_visit(const char *line,
console_completion_visitor_t visitor,
void *context);
/* Bounded longest-prefix completion shared by the UART and admin SSH frontends. */
bool console_completion_expand(const char *line, char *completed, size_t capacity);