summaryrefslogtreecommitdiffstats
path: root/vlib/vlib/unix/unix.h
diff options
context:
space:
mode:
Diffstat (limited to 'vlib/vlib/unix/unix.h')
-rw-r--r--vlib/vlib/unix/unix.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/vlib/vlib/unix/unix.h b/vlib/vlib/unix/unix.h
index 44a8853e356..269b9df5975 100644
--- a/vlib/vlib/unix/unix.h
+++ b/vlib/vlib/unix/unix.h
@@ -41,6 +41,7 @@
#define included_unix_unix_h
#include <vppinfra/socket.h>
+#include <termios.h>
struct unix_file;
typedef clib_error_t * (unix_file_function_t) (struct unix_file * f);
@@ -102,10 +103,15 @@ typedef struct {
/* CLI log file. GIGO. */
u8 *log_filename;
int log_fd;
- /* Don't put telnet connections into character mode */
+ /* Don't put CLI connections into character mode */
int cli_line_mode;
+
+ /* Maximum amount of command line history to keep per session */
u32 cli_history_limit;
-
+
+ /* Store the original state of stdin when it's a tty */
+ struct termios tio_stdin;
+ int tio_isset;
} unix_main_t;
/* Global main structure. */