rcconsole: fix for escape codes split into multiple reads
[enigma2.git] / lib / driver / rcconsole.h
index 0c1dd636f308443e1b696a69658e1cadf638e749..8a24612c5bd6f4fa6566d5e20e7d063b11572297 100644 (file)
@@ -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;