diff options
Diffstat (limited to 'linenoise/linenoise.h')
-rw-r--r-- | linenoise/linenoise.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/linenoise/linenoise.h b/linenoise/linenoise.h index da6e93de..34d0a993 100644 --- a/linenoise/linenoise.h +++ b/linenoise/linenoise.h @@ -9,7 +9,7 @@ * * Copyright (c) 2010-2015, Salvatore Sanfilippo <antirez at gmail dot com> * Copyright (c) 2010-2013, Pieter Noordhuis <pcnoordhuis at gmail dot com> - * Copyright (c) 2015-2020, Kaz Kylheku <kaz at kylheku dot com> + * Copyright (c) 2015-2024, Kaz Kylheku <kaz at kylheku dot com> * * All rights reserved. * @@ -92,6 +92,8 @@ typedef struct lino_os { wide_disp \ } +#if CONFIG_FULL_REPL + typedef struct lino_completions { size_t len; wchar_t **cvec; @@ -102,6 +104,8 @@ typedef void lino_compl_cb_t(const wchar_t *, lino_completions_t *, void *ctx); void lino_set_completion_cb(lino_t *, lino_compl_cb_t *, void *ctx); void lino_add_completion(lino_completions_t *, const wchar_t *); +#endif + void lino_init(lino_os_t *); lino_t *lino_make(mem_t *istream, mem_t *ostream); lino_t *lino_copy(lino_t *); @@ -116,6 +120,7 @@ int lino_hist_set_max_len(lino_t *, int len); int lino_hist_save(lino_t *, const wchar_t *filename, int new_only); int lino_hist_load(lino_t *, const wchar_t *filename); int lino_have_new_lines(lino_t *); +#if HAVE_TERMIOS void lino_set_result(lino_t *, wchar_t *); /* takes ownership of malloced mem; modifies it */ int lino_clear_screen(lino_t *); void lino_set_multiline(lino_t *, int ml); @@ -124,9 +129,13 @@ void lino_set_selinclusive(lino_t *, int si); int lino_get_selinculsive(lino_t *); void lino_set_noninteractive(lino_t *, int ni); int lino_get_noninteractive(lino_t *); +#endif +void lino_enable_noninteractive_prompt(lino_t *, int enable); +#if HAVE_TERMIOS typedef wchar_t *lino_atom_cb_t(lino_t *, const wchar_t *line, int n, void *ctx); void lino_set_atom_cb(lino_t *, lino_atom_cb_t *, void *ctx); +#endif typedef int lino_enter_cb_t(const wchar_t *line, void *ctx); void lino_set_enter_cb(lino_t *, lino_enter_cb_t *, void *ctx); |