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