X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fconsole.h;h=3c0bb71ff3826d23467172a8e86c28f565ae1088;hb=b97d4e9f86e90254ab9edef7ee62a910f6333c78;hp=06fa603c495a7f99950492088d32ae4b8d2d4598;hpb=dd318ef67b0c683c8306da0abf806e99cff346e9;p=libs%2Fcore.git diff --git a/source/console.h b/source/console.h index 06fa603..3c0bb71 100644 --- a/source/console.h +++ b/source/console.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspio -Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_IO_CONSOLE_H_ #define MSP_IO_CONSOLE_H_ @@ -39,11 +32,17 @@ public: */ void set_line_buffer(bool); - virtual Handle get_event_handle(); + /** Retrieves the size of the Console. Can only be used on an output + Console. */ + void get_size(unsigned &rows, unsigned &cols); + protected: virtual unsigned do_write(const char *, unsigned); virtual unsigned do_read(char *, unsigned); + public: + virtual Handle get_event_handle(); + static Console &instance(unsigned); };