From dcf84169ae75b11c1656d45dbc6c626d93da6a10 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 8 Dec 2017 15:07:52 +0100 Subject: Add output support (broken on esp8266) --- include/posix/driver/stdout.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/posix/driver/stdout.h (limited to 'include/posix/driver/stdout.h') 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 -- cgit v1.2.3