1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2020 Dmitry Kozlyuk
5 #ifndef _CMDLINE_PRIVATE_H_
6 #define _CMDLINE_PRIVATE_H_
10 /* Disable buffering and echoing, save previous settings to oldterm. */
11 void terminal_adjust(struct cmdline *cl);
13 /* Restore terminal settings form oldterm. */
14 void terminal_restore(const struct cmdline *cl);
16 /* Check if a single character can be read from input. */
17 int cmdline_poll_char(struct cmdline *cl);
19 /* Read one character from input. */
20 ssize_t cmdline_read_char(struct cmdline *cl, char *c);