Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
838 B

/*
TERMINAL MODULE
Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
*/
#pragma once
#include "espurna.h"
#if TERMINAL_SUPPORT
#include <functional>
#include <memory>
#include <unordered_map>
#include <vector>
#include "terminal_parsing.h"
#include "terminal_commands.h"
void terminalOK();
void terminalError(const String& error);
void terminalOK(Print&);
void terminalError(Print&, const String& error);
void terminalOK(const terminal::CommandContext&);
void terminalError(const terminal::CommandContext&, const String&);
void terminalRegisterCommand(const String& name, terminal::Terminal::CommandFunc func);
size_t terminalCapacity();
void terminalInject(void *data, size_t len);
void terminalInject(char ch);
Stream& terminalDefaultStream();
void terminalSetup();
#endif // TERMINAL_SUPPORT == 1