X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fconsole.h;h=3c0bb71ff3826d23467172a8e86c28f565ae1088;hp=2d425c805f2c040ddc5991c452fcdf046190accf;hb=b97d4e9f86e90254ab9edef7ee62a910f6333c78;hpb=49c1f3c3ffdf318579a809f3f800442c0c76c818 diff --git a/source/console.h b/source/console.h index 2d425c8..3c0bb71 100644 --- a/source/console.h +++ b/source/console.h @@ -32,16 +32,17 @@ public: */ void set_line_buffer(bool); - /** - Retrieves the size of the Console. Can only be used on an output Console. - */ + /** 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(); protected: virtual unsigned do_write(const char *, unsigned); virtual unsigned do_read(char *, unsigned); + public: + virtual Handle get_event_handle(); + static Console &instance(unsigned); };