#include <mux_console.h>
Inheritance diagram for Mux_console:
Public Types | |
enum | { SIZE = 8 } |
Public Member Functions | |
int | write (char const *str, size_t len) |
Write a string of len chacters to the output. | |
int | getchar (bool blocking=true) |
read a charcater from the input. | |
int | char_avail () const |
Is input available? | |
Mux_console () | |
Mword | get_attributes () const |
deliver attributes of all subconsoles. | |
void | getchar_chance () |
virtual bool | register_console (Console *c, int pos=0) |
Register a console to be multiplexed. | |
bool | unregister_console (Console *c) |
Unregister a console from the multiplexer. | |
void | change_state (Mword any_true, Mword all_false, Mword mask, Mword bits) |
Change the state of a group of consoles specified by attributes. | |
Console * | find_console (Mword any_true) |
Find a console with a specific attribute. | |
void | start_exclusive (Mword any_true) |
Start exclusive mode for a specific console. | |
void | end_exclusive (Mword any_true) |
End exclusive mode for a specific console. | |
void | list_consoles () |
Private Attributes | |
int | _next_getchar |
int | _items |
Console * | _cons [SIZE] |
This implementation of the Console interface can be used to multiplex among some input, output, and in-out consoles.
|
|
|
|
|
Change the state of a group of consoles specified by attributes.
|
|
Is input available? This method can be implemented. It must return -1 if no information is available, 1 if at least one character is avialable, and 0 if no charachter is available. Reimplemented from Console. |
|
End exclusive mode for a specific console.
|
|
Find a console with a specific attribute.
|
|
deliver attributes of all subconsoles.
Reimplemented from Console. |
|
read a charcater from the input.
Reimplemented from Console. Reimplemented in Kconsole. |
|
Reimplemented in Kconsole. |
|
|
|
Register a console to be multiplexed.
Reimplemented in Kconsole. |
|
Start exclusive mode for a specific console. Only the one console which matches to any_true is enabled for input and output. All other consoles are disabled.
|
|
Unregister a console from the multiplexer.
|
|
Write a string of len chacters to the output.
Reimplemented from Console. |
|
|
|
|
|
|