diff options
author | Chris Johns <chrisj@rtems.org> | 2006-09-28 14:44:50 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2006-09-28 14:44:50 +0000 |
commit | 8dec18146c7080011555a205fc6540cc12889c58 (patch) | |
tree | 3020b06fd9d9dc3249a1d9134aab196ad8b2f9bd /cpukit/libmisc | |
parent | 2006-09-14 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-8dec18146c7080011555a205fc6540cc12889c58.tar.bz2 |
Flush stdout after updating the command line.
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/monitor/mon-command.c | 9 |
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. */ |