public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Make sure all messages to user are flushed before first prompt.
@ 2008-03-14 11:41 mark
  0 siblings, 0 replies; only message in thread
From: mark @ 2008-03-14 11:41 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  a3a186ec6145a6220443d1ece37956bd42e2dc31 (commit)
      from  ca3e9c22f4a2362a49d8601672250f4de609a9ae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit a3a186ec6145a6220443d1ece37956bd42e2dc31
Author: Mark Wielaard <mwielaard@redhat.com>
Date:   Fri Mar 14 12:40:29 2008 +0100

    Make sure all messages to user are flushed before first prompt.
    
    frysk-core/frysk/bindir/ChangeLog
    2008-03-14  Mark Wielaard  <mwielaard@redhat.com>
    
        * fhpd.java (CommandLine.run): Make sure all messages are flushed
        before first prompt.
    
    frysk-core/frysk/hpd/ChangeLog
    2008-03-14  Mark Wielaard  <mwielaard@redhat.com>
    
        * CLI.java (flushMessages): Make public and document for usage
        in fhpd.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/bindir/ChangeLog |    5 +++++
 frysk-core/frysk/bindir/fhpd.java |    4 ++++
 frysk-core/frysk/hpd/CLI.java     |    5 ++++-
 frysk-core/frysk/hpd/ChangeLog    |    5 +++++
 4 files changed, 18 insertions(+), 1 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/bindir/ChangeLog b/frysk-core/frysk/bindir/ChangeLog
index d36b218..7d51dfb 100644
--- a/frysk-core/frysk/bindir/ChangeLog
+++ b/frysk-core/frysk/bindir/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-14  Mark Wielaard  <mwielaard@redhat.com>
+
+	* fhpd.java (CommandLine.run): Make sure all messages are flushed
+	before first prompt.
+
 2008-03-13  Stan Cox  <scox@redhat.com>
 
 	* TestFstack.java (getCanonicalAbsRootSrcDir): New. Use instead of 
diff --git a/frysk-core/frysk/bindir/fhpd.java b/frysk-core/frysk/bindir/fhpd.java
index af1a5bc..aa8dca7 100644
--- a/frysk-core/frysk/bindir/fhpd.java
+++ b/frysk-core/frysk/bindir/fhpd.java
@@ -139,6 +139,10 @@ public class fhpd {
 		LoadCommand.load(command, cli);
 	    }
 
+	    // Make sure any messages logged by the Attach or Load commands
+	    // are displayed to the user before the first prompt.
+	    cli.flushMessages();
+
 	    try {
 		do {
 		    line = reader.readLine(cli.getPrompt());
diff --git a/frysk-core/frysk/hpd/CLI.java b/frysk-core/frysk/hpd/CLI.java
index a95bcdf..1d47869 100644
--- a/frysk-core/frysk/hpd/CLI.java
+++ b/frysk-core/frysk/hpd/CLI.java
@@ -337,7 +337,10 @@ public class CLI {
 	}
     }
 
-    private void flushMessages() {
+    // Makes sure that all messages for the user by commands through
+    // addMessage() are displayed. Normally called after an update event
+    // or when a command has been executed before displaying a prompt.
+    public void flushMessages() {
 	synchronized (messages) {
 	    for (Iterator iter = messages.iterator(); iter.hasNext();) {
 		Message tempmsg = (Message) iter.next();
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index 37bb0ab..7d2f463 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-14  Mark Wielaard  <mwielaard@redhat.com>
+
+	* CLI.java (flushMessages): Make public and document for usage
+	in fhpd.
+
 2008-03-13  Stan Cox  <scox@redhat.com>
 
 	* ListCommand.java (interpret): Use SysRoot.


hooks/post-receive
--
frysk system monitor/debugger


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-14 11:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-14 11:41 [SCM] master: Make sure all messages to user are flushed before first prompt mark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).