git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rcconsole: fix for escape codes split into multiple reads
[enigma2.git]
/
lib
/
driver
/
rcconsole.h
diff --git
a/lib/driver/rcconsole.h
b/lib/driver/rcconsole.h
index 0c1dd636f308443e1b696a69658e1cadf638e749..8a24612c5bd6f4fa6566d5e20e7d063b11572297 100644
(file)
--- a/
lib/driver/rcconsole.h
+++ b/
lib/driver/rcconsole.h
@@
-9,7
+9,8
@@
class eRCConsoleDriver: public eRCDriver
struct termios ot;
protected:
int handle;
struct termios ot;
protected:
int handle;
- eSocketNotifier *sn;
+ ePtr<eSocketNotifier> sn;
+ bool m_escape;
void keyPressed(int);
public:
eRCConsoleDriver(const char *filename);
void keyPressed(int);
public:
eRCConsoleDriver(const char *filename);
@@
-35,7
+36,7
@@
public:
class eRCConsole: public eRCDevice
{
public:
class eRCConsole: public eRCDevice
{
public:
- void handleCode(
int
code);
+ void handleCode(
long
code);
eRCConsole(eRCDriver *driver);
const char *getDescription() const;
const char *getKeyDescription(const eRCKey &key) const;
eRCConsole(eRCDriver *driver);
const char *getDescription() const;
const char *getKeyDescription(const eRCKey &key) const;