From 9dd442b1234a27375c956e650e49a32c61ff6167 Mon Sep 17 00:00:00 2001 From: aliguori Date: Thu, 5 Mar 2009 23:01:10 +0000 Subject: monitor: Break out readline_show_prompt (Jan Kiszka) Break readline_show_prompt out of readline_start so that (re-)printing the prompt can be controlled in a more fine-grained way. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6709 c046a42c-6fe2-441c-8c8c-71466251a162 --- monitor.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index dd28889..322cf1a 100644 --- a/monitor.c +++ b/monitor.c @@ -2855,6 +2855,7 @@ void monitor_resume(void) static void monitor_start_input(void) { readline_start("(qemu) ", 0, monitor_handle_command1, NULL); + readline_show_prompt(); } static void term_event(void *opaque, int event) @@ -2913,6 +2914,7 @@ static void monitor_readline(const char *prompt, int is_password, char *buf, int buf_size) { readline_start(prompt, is_password, monitor_readline_cb, NULL); + readline_show_prompt(); monitor_readline_buf = buf; monitor_readline_buf_size = buf_size; monitor_readline_started = 1; -- cgit v1.1