19 #include <uuid/console.h> 31 :
Shell(), stream_(stream) {
46 return stream_.write(buffer, size);
int read_one_char() override
Read one character from the available input.
unsigned int context() const
Get the context at the top of the stack.
Base class for a command shell.
bool available_char() override
Check for at least one character of available input.
StreamConsole(std::shared_ptr< Commands > commands, Stream &stream, unsigned int context=0, unsigned int flags=0)
Create a new StreamConsole shell with the given commands, default context and initial flags...
size_t write(uint8_t data) override
Write one byte to the output stream.
int peek_one_char() override
Read one character from the available input without advancing to the next one.