diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2018-03-06 16:14:28 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2018-04-12 14:22:33 +0800 |
commit | 0f22891be18848ef14d8561ef89d2da3d21341d5 (patch) | |
tree | e01c9bca1a939f2475e7a6ff5629e5df82d6c192 | |
parent | a6495fbcf75b357fe282f71c1dbbadd155e74934 (diff) | |
download | fbterm-0f22891be18848ef14d8561ef89d2da3d21341d5.tar.gz fbterm-0f22891be18848ef14d8561ef89d2da3d21341d5.zip |
TtyInput: Move global static VT data to within the TtyInputVT class
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r-- | src/input.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/input.cpp b/src/input.cpp index ecafd2f..bab9b08 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -34,11 +34,6 @@ #include "improxy.h" #include "fbconfig.h" -static termios oldTm; -static long oldKbMode; -static bool keymapFailure = false; -static bool inited = false; - DEFINE_INSTANCE(TtyInput) class TtyInputVT : public TtyInput, public IoPipe { @@ -59,6 +54,10 @@ private: void processRawKeys(s8* buf, u32 len); bool mRawMode; + termios oldTm; + long oldKbMode; + bool keymapFailure = false; + bool inited = false; }; TtyInput *TtyInput::createInstance() |