From 8dec18146c7080011555a205fc6540cc12889c58 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 28 Sep 2006 14:44:50 +0000 Subject: Flush stdout after updating the command line. --- cpukit/libmisc/monitor/mon-command.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cpukit/libmisc/monitor/mon-command.c b/cpukit/libmisc/monitor/mon-command.c index bc4c2f126a..617252b1f5 100644 --- a/cpukit/libmisc/monitor/mon-command.c +++ b/cpukit/libmisc/monitor/mon-command.c @@ -242,9 +242,14 @@ rtems_monitor_line_editor ( while (1) { - unsigned int extended_key = rtems_monitor_getchar (); - char c = extended_key & KEYS_NORMAL_MASK; + unsigned int extended_key; + char c; + fflush (stdout); + + extended_key = rtems_monitor_getchar (); + c = extended_key & KEYS_NORMAL_MASK; + /* * Make the extended_key usable as a boolean. */ -- cgit v1.2.3