LineBuffer.h
Go to the documentation of this file.
Class to enable buffering of a single line of text, with simple editing.
Definition: LineBuffer.h:25
unsigned getLength() const
Get number of characters in the text line.
Definition: LineBuffer.h:97
Action process(Stream &input, ReadWriteStream &output)
Process all available data from input
Action processKey(char key, ReadWriteStream *output=nullptr)
Process a keypress in a consistent manner for console editing.
bool startsWith(const char *text) const
Check for matching text at start of line, case-sensitive.
Action
Returned from processKey method directing caller.
Definition: LineBuffer.h:34
bool contains(const char *text) const
Check for matching text anywhere in line, case-sensitive.
LineBufferBase(char *buffer, uint16_t size)
Definition: LineBuffer.h:27
Class to enable buffering of a single line of text, with simple editing.
Definition: LineBuffer.h:139