support unicode characters from the ssh.exe (#228)

This commit is contained in:
bagajjal 2017-10-30 15:50:08 -07:00 committed by Manoj Ampalam
parent d4069f2055
commit b3862103e4
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ ReadConsoleForTermEmul(HANDLE hInput, char *destin, int destinlen)
while (DataAvailable(hInput)) {
if (glob_outlen >= destinlen)
return glob_outlen;
ReadConsoleInput(hInput, &InputRecord, 1, &dwInput);
ReadConsoleInputW(hInput, &InputRecord, 1, &dwInput);
switch (InputRecord.EventType) {
case WINDOW_BUFFER_SIZE_EVENT:
queue_terminal_window_change_event();