-/* $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_
*/
void set_line_buffer(bool);
- virtual Handle get_event_handle();
-private:
+ /** 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);
};