Index: trunk/FACT++/src/Console.cc
===================================================================
--- trunk/FACT++/src/Console.cc	(revision 11052)
+++ trunk/FACT++/src/Console.cc	(revision 11053)
@@ -180,2 +180,42 @@
     fLogO.Display(true);
 }
+
+// **************************************************************************
+/** @class ConsoleStream
+
+@brief This is an extension to the Readline class provding a colored output
+
+This in an extension to the Readline class. It's purpose is just to have a
+colored output stream available. It's main idea is that it is used in
+environments without user interaction as a replacement the Console class.
+This is interesting to be able to do everything identical as if Console
+would be used, but Run() does not prompt but just wait until Stop()
+was called. The advantage is that some functions of Readline can be used
+like Execute and the history (just for Execute() commands of course)
+
+ */
+// **************************************************************************
+
+
+// --------------------------------------------------------------------------
+//
+//! Instantiate a console stream. It will create a single WindowLog object
+//! which is returned as input and output stream.
+//!
+//! @param name
+//!     The name of the program passed to the Readline constructor
+//!
+ConsoleStream::ConsoleStream(const char *name) : Readline(name)
+{
+    ReadlineColor::PrintBootMsg(fLogO, GetName());
+}
+
+// --------------------------------------------------------------------------
+//
+//! Just usleep until Stop() was called.
+//
+void ConsoleStream::Run(const char *)
+{
+    while (!IsStopped())
+        usleep(10000);
+}
Index: trunk/FACT++/src/Console.h
===================================================================
--- trunk/FACT++/src/Console.h	(revision 11052)
+++ trunk/FACT++/src/Console.h	(revision 11053)
@@ -4,4 +4,24 @@
 #include "Readline.h"
 #include "WindowLog.h"
+
+class ConsoleStream : public Readline
+{
+private:
+    WindowLog fLogO;
+
+public:
+    ConsoleStream(const char *name);
+
+    // I/O
+    WindowLog &GetStreamOut() { return fLogO; }
+    WindowLog &GetStreamIn()  { return fLogO; }
+
+    const WindowLog &GetStreamOut() const { return fLogO; }
+    const WindowLog &GetStreamIn()  const { return fLogO; }
+
+    void Run(const char * = 0);
+};
+
+
 
 class Console : public Readline
