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"
26 Static_object<Kconsole> Kconsole::_c;
30 int Kconsole::getchar(bool blocking)
33 return Mux_console::getchar(false);
38 if ((c = Mux_console::getchar(false)) != -1)
41 if (Config::getchar_does_hlt_works_ok // wakeup timer is enabled
42 && Proc::interrupts()) // does'nt work without ints
53 Console::stdout = this;
54 Console::stderr = this;
55 Console::stdin = this;
59 PUBLIC static FIASCO_NOINLINE