Skip to content

Commit

Permalink
Explicitly use the Unicode function WriteConsoleInputW
Browse files Browse the repository at this point in the history
  • Loading branch information
rprichard committed May 17, 2017
1 parent 6765a41 commit e75bd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent/Agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ void Agent::resizeWindow(int cols, int rows)
sizeEvent.EventType = WINDOW_BUFFER_SIZE_EVENT;
sizeEvent.Event.WindowBufferSizeEvent.dwSize = primaryBuffer->bufferSize();
DWORD actual {};
WriteConsoleInput(GetStdHandle(STD_INPUT_HANDLE), &sizeEvent, 1, &actual);
WriteConsoleInputW(GetStdHandle(STD_INPUT_HANDLE), &sizeEvent, 1, &actual);
}

void Agent::scrapeBuffers()
Expand Down

0 comments on commit e75bd9c

Please sign in to comment.