summaryrefslogtreecommitdiffstats
path: root/lib/vty_cli.c
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-07-21 21:40:02 +0100
committerChris Hall <chris.hall@highwayman.com>2011-07-21 21:40:02 +0100
commit228e06bad624a33090da4a09f32f8fed84a7e15c (patch)
tree507a6f0a491d8e5322645cc3ee825711a2dbd20d /lib/vty_cli.c
parentaee26f69df6bd90c9fe8e9eb8f8ce405ed12ffe5 (diff)
downloadquagga-228e06bad624a33090da4a09f32f8fed84a7e15c.tar.bz2
quagga-228e06bad624a33090da4a09f32f8fed84a7e15c.tar.xz
Disable the "~" VTY Terminal prompt.
Commands sent to the Routing Engine are now sent as priority messages, so should no longer be a need for the "~" prompt which kept the CLI "live" while a command was waiting for the Routing Engine to pay attention. Also: reinstated test-vector.c tests for vector_move_item_here(), which seem somehow to have got lost.
Diffstat (limited to 'lib/vty_cli.c')
-rw-r--r--lib/vty_cli.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/vty_cli.c b/lib/vty_cli.c
index 83f156ef..a6a276e8 100644
--- a/lib/vty_cli.c
+++ b/lib/vty_cli.c
@@ -179,7 +179,9 @@ uty_cli_new(vio_vf vf)
{
cli->pause_timer = qtimer_init_new(NULL, vty_cli_nexus->pile,
vty_term_pause_timeout, cli) ;
- cli->tilde_enabled = vty_multi_nexus && false ;
+#if 0
+ cli->tilde_enabled = vty_multi_nexus ;
+#endif
} ;
/* Ready to be started -- paused, out_active & more_wait are false.
@@ -259,7 +261,9 @@ uty_cli_close(vty_cli cli, bool final)
/* Discard any pause_timer, and suppress */
cli->pause_timer = qtimer_free(cli->pause_timer) ;
cli->paused = false ;
+#if 0
cli->tilde_enabled = false ;
+#endif
/* If final, free the CLI object. */
if (final)
@@ -813,7 +817,11 @@ uty_cli_dispatch(vty_cli cli)
uty_cmd_signal(vio, CMD_SUCCESS) ;
- cli->blocked = (to_do_now != cmd_do_command) || !cli->tilde_enabled ;
+ cli->blocked = (to_do_now != cmd_do_command)
+#if 0
+ || !cli->tilde_enabled
+#endif
+ ;
}
else
{