19 #include <uuid/console.h>
44 return std::string{
'$'};
69 if (!hostname.empty()) {
virtual void end_of_transmission()
The end of transmission character has been received.
void display_prompt()
Output a prompt on the shell.
virtual void display_banner()
Output the startup banner.
size_t print(const std::string &data)
Output a string.
virtual std::string prompt_prefix()
Get the prefix to be used at the beginning of the command prompt.
void stop()
Stop this shell from running.
unsigned int context() const
Get the context at the top of the stack.
Data for the Mode::PASSWORD shell mode.
size_t println(const std::string &data)
Output a string followed by CRLF end of line characters.
std::unique_ptr< ModeData > mode_data_
const __FlashStringHelper * password_prompt_
virtual std::string hostname_text()
Get the hostname to be included in the command prompt.
virtual std::string prompt_suffix()
Get the prefix to be used at the end of the command prompt.
virtual std::string context_text()
Get the text indicating the current context, to be included in the command prompt.