diff options
Diffstat (limited to 'include/posix/driver')
-rw-r--r-- | include/posix/driver/stdout.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/posix/driver/stdout.h b/include/posix/driver/stdout.h new file mode 100644 index 0000000..cf8d881 --- /dev/null +++ b/include/posix/driver/stdout.h @@ -0,0 +1,20 @@ +#ifndef STANDARDOUTPUT_H +#define STANDANDOUTPUT_H + +#include "object/outputstream.h" + +class StandardOutput : public OutputStream { + private: + StandardOutput(const StandardOutput ©); + + public: + StandardOutput () {} + void setup() {} + + virtual void put(char c) override; + virtual void flush() override; +}; + +extern StandardOutput kout; + +#endif |