3 #include "mux_console.h"
4 #include "std_macros.h"
6 class Kconsole : public Mux_console
9 int getchar(bool blocking = true);
10 void getchar_chance();
12 static Mux_console *console() FIASCO_CONST;
15 static bool initialized;
22 #include "mux_console.h"
23 #include "processor.h"
27 int Kconsole::getchar(bool blocking)
30 return Mux_console::getchar(false);
35 if ((c = Mux_console::getchar(false)) != -1)
38 if (Config::getchar_does_hlt && // does work in principle
39 Config::getchar_does_hlt_works_ok && // wakeup timer is enabled
40 Proc::interrupts()) // does'nt work without ints
49 bool Kconsole::initialized;
58 Console::stdout = console();
59 Console::stderr = Console::stdout;
60 Console::stdin = Console::stdout;
66 Kconsole::register_console(Console *c, int pos = 0)
68 bool b = Mux_console::register_console(c, pos);
76 Mux_console *Kconsole::console()