lintel 0.2.0
Loading...
Searching...
No Matches
TerminalService.h
Go to the documentation of this file.
1#ifndef LINTEL_TERMINALSERVICE_H
2#define LINTEL_TERMINALSERVICE_H
3
5
6#include <string>
7
8namespace lintel {
11{
12private:
13 std::string m_currentLine;
14 std::size_t m_position = 0;// next writing position in currentLine
15 bool m_hideChars = false;
16
17public:
18 void log(const std::string &text) override;
19
20 SymbolEvent onKeyPressed(KeyEvent key, std::string menu) override;
21
22 void resetCursor() override;
23
24 const std::string &getLine() override;
25
26 void enableHideChars() override;
27
28 void disableHideChars() override;
29};
30
31}// namespace lintel
32#endif// LINTEL_TERMINALSERVICE_H
Definition ITerminalService.h:11
Definition TerminalService.h:11
void resetCursor() override
void enableHideChars() override
void disableHideChars() override
const std::string & getLine() override
void log(const std::string &text) override
SymbolEvent onKeyPressed(KeyEvent key, std::string menu) override
Definition BaseFeature.h:6
std::pair< KeyType, char > KeyEvent
Definition CliTypes.h:11
std::pair< Symbol, std::string > SymbolEvent
Definition CliTypes.h:16
constexpr std::string_view type_name()
Definition TypeName.h:9