Mouse support. Fix & verify Webassembly support.

There was some undefined behavior to be fixed in the terminal input
parser.

The behavior of flush seems to have change. The fix was to invert '\0'
and std::flush.
This commit is contained in:
ArthurSonzogni
2021-04-25 16:58:16 +02:00
parent 0b9b6c692a
commit a27c878a3f
6 changed files with 55 additions and 19 deletions

View File

@@ -27,6 +27,11 @@ class Input : public Component {
// Component implementation.
Element Render() override;
bool OnEvent(Event) override;
private:
bool OnMouseEvent(Event);
Box input_box_;
Box cursor_box_;
};
} // namespace ftxui