lintel 0.2.0
Loading...
Searching...
No Matches
InputService.h
Go to the documentation of this file.
1#ifndef LINTEL_INPUTSERVICE_H
2#define LINTEL_INPUTSERVICE_H
3
5
6#if !defined(_WIN32)
7#include <termios.h>
8#include <unistd.h>
9#endif
10
11namespace lintel {
14{
15private:
16#if !defined(_WIN32)
17 termios newt{};
18#endif
19
21 KeyEvent readEscapeSequence();
22
23public:
25
26 ~InputService() override;
27
28 KeyEvent onRead() override;
29};
30
31}// namespace lintel
32#endif// LINTEL_INPUTSERVICE_H
Definition IInputService.h:9
Definition InputService.h:14
~InputService() override
KeyEvent onRead() override
Definition BaseFeature.h:6
std::pair< KeyType, char > KeyEvent
Definition CliTypes.h:11
constexpr std::string_view type_name()
Definition TypeName.h:9