aboutsummaryrefslogtreecommitdiffstats
path: root/vlib/vlib/unix/unix.h
diff options
context:
space:
mode:
authorChris Luke <chrisy@flirble.org>2016-04-25 13:49:07 -0400
committerDave Barach <openvpp@barachs.net>2016-04-27 13:32:48 +0000
commit572d81213a216fd8e86f17e0b8a6bb72479c893f (patch)
tree4cdabe54b6e8957057294b04e0a4ad9f80829fd7 /vlib/vlib/unix/unix.h
parent0aca5eb1b88524fc8e988deb6488d14c092b0137 (diff)
Add a (small) banner to the Debug and Telnet CLI
_______ _ _ _____ ___ __/ __/ _ \ (_)__ | | / / _ \/ _ \ _/ _// // / / / _ \ | |/ / ___/ ___/ /_/ /____(_)_/\___/ |___/_/ /_/ - For terminals that look like they support ANSI output the FD.io part is colored red. - This is only shown at the start of a debug CLI or a telnet CLI session. - This banner can be disabled with "cli-no-banner" in the "unix" section of the startup config file. Change-Id: I085b3780dcca3eae546859dbde6c1c34c8258b9f Signed-off-by: Chris Luke <chrisy@flirble.org>
Diffstat (limited to 'vlib/vlib/unix/unix.h')
-rw-r--r--vlib/vlib/unix/unix.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vlib/vlib/unix/unix.h b/vlib/vlib/unix/unix.h
index 269b9df5975..20aec675ee0 100644
--- a/vlib/vlib/unix/unix.h
+++ b/vlib/vlib/unix/unix.h
@@ -103,12 +103,16 @@ typedef struct {
/* CLI log file. GIGO. */
u8 *log_filename;
int log_fd;
+
/* 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;
+ /* Suppress the welcome banner at CLI session start */
+ int cli_no_banner;
+
/* Store the original state of stdin when it's a tty */
struct termios tio_stdin;
int tio_isset;