]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/console.h
Use vectors for storage in Poller
[libs/core.git] / source / io / console.h
index d29ef003998c005c32d83305003e0b83377a8dd4..8feccfd2ffe74a2fd3e1e05d69310e887eb7c0d6 100644 (file)
@@ -17,9 +17,9 @@ class Console: public EventObject
 public:
        enum Stream
        {
-               INPUT = 0,
-               OUTPUT = 1,
-               ERROR = 2
+               CIN = 0,
+               COUT = 1,
+               CERR = 2
        };
 
 private:
@@ -27,10 +27,12 @@ private:
        Handle handle;
 
        Console(Stream);
+       void platform_init();
 public:
        ~Console();
 
        virtual void set_block(bool);
+       virtual void set_inherit(bool);
        
        /** If local echo is enabled, characters will appear on the console as they
        are typed.  Can only be used on an input Console.  */
@@ -56,6 +58,7 @@ protected:
        virtual unsigned do_read(char *, unsigned);
 
 public:
+       virtual const Handle &get_handle(Mode);
        virtual const Handle &get_event_handle() { return handle; }
 
        static Console &instance(Stream);