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