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
16 static Static_object<Kconsole> _c;
23 #include "mux_console.h"
24 #include "processor.h"
28 int Kconsole::getchar(bool blocking)
31 return Mux_console::getchar(false);
36 if ((c = Mux_console::getchar(false)) != -1)
39 if (Config::getchar_does_hlt && // does work in principle
40 Config::getchar_does_hlt_works_ok && // wakeup timer is enabled
41 Proc::interrupts()) // does'nt work without ints
48 Static_object<Kconsole> Kconsole::_c;
51 PUBLIC static FIASCO_NOINLINE
60 Console::stdout = this;
61 Console::stderr = this;
62 Console::stdin = this;