]> git.tdb.fi Git - libs/core.git/blobdiff - source/console.h
Use the console handle for read/write on *nix
[libs/core.git] / source / console.h
index 439ee7b8a9ae0a53bdb974d4453a296314cfae42..d12697f6e66d54579955d35b21bdad66dd254070 100644 (file)
@@ -39,8 +39,13 @@ public:
        */
        void set_line_buffer(bool);
 
+       /**
+       Retrieves the size of the Console.  Can only be used on an output Console.
+       */
+       void get_size(unsigned &rows, unsigned &cols);
+
        virtual Handle get_event_handle();
-private:
+protected:
        virtual unsigned do_write(const char *, unsigned);
        virtual unsigned do_read(char *, unsigned);
 public: