diff options
-rw-r--r-- | win32/termios.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/termios.c b/win32/termios.c index 40e70309e..2b1d2c761 100644 --- a/win32/termios.c +++ b/win32/termios.c | |||
@@ -75,8 +75,10 @@ int64_t FAST_FUNC read_key(int fd, char *buf UNUSED_PARAM, int timeout) | |||
75 | } | 75 | } |
76 | continue; | 76 | continue; |
77 | } | 77 | } |
78 | s = &record.Event.KeyEvent.uChar.AsciiChar; | 78 | if ( (record.Event.KeyEvent.uChar.AsciiChar & 0x80) == 0x80 ) { |
79 | OemToCharBuff(s, s, 1); | 79 | s = &record.Event.KeyEvent.uChar.AsciiChar; |
80 | OemToCharBuff(s, s, 1); | ||
81 | } | ||
80 | ret = record.Event.KeyEvent.uChar.AsciiChar; | 82 | ret = record.Event.KeyEvent.uChar.AsciiChar; |
81 | break; | 83 | break; |
82 | } | 84 | } |