public:
~Console();
- virtual void set_block(bool);
+ void set_block(bool) override;
+ void set_inherit(bool) override;
/** If local echo is enabled, characters will appear on the console as they
are typed. Can only be used on an input Console. */
void redirect(Base &);
protected:
- virtual unsigned do_write(const char *, unsigned);
- virtual unsigned do_read(char *, unsigned);
+ std::size_t do_write(const char *, std::size_t) override;
+ std::size_t do_read(char *, std::size_t) override;
public:
- virtual const Handle &get_event_handle() { return handle; }
+ const Handle &get_handle(Mode) override;
+ const Handle &get_event_handle() override { return handle; }
static Console &instance(Stream);
};