33class AnsiStripper :
public ITerminalOutputParser
37 std::string Process(
const char* data,
size_t len)
override;
40 void Reset()
override { mState = State::Normal; mEndsWithNewline =
true; }
42 const char* GetName()
const override {
return "default"; }
52 void SetSynthesizeFrameNewlines(
bool enable) { mSynthesizeFrameNewlines = enable; }
53 bool GetSynthesizeFrameNewlines()
const {
return mSynthesizeFrameNewlines; }
66 State mState = State::Normal;
71 std::string mCsiParams;
78 bool mEndsWithNewline =
true;
81 bool mSynthesizeFrameNewlines =
true;