summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/libmisc/monitor/mon-command.c9
1 files 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.
*/