Skip to content

Commit

Permalink
Use WriteConsoleOutputCharacterA.
Browse files Browse the repository at this point in the history
Closes #33, #49, #53.
  • Loading branch information
tapio committed Oct 20, 2019
1 parent 9ccff33 commit be8359b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rlutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ RLUTIL_INLINE void setString(RLUTIL_STRING_T str) {
CONSOLE_SCREEN_BUFFER_INFO csbi;

GetConsoleScreenBufferInfo(hConsoleOutput, &csbi);
WriteConsoleOutputCharacter(hConsoleOutput, str, len, csbi.dwCursorPosition, &numberOfCharsWritten);
WriteConsoleOutputCharacterA(hConsoleOutput, str, len, csbi.dwCursorPosition, &numberOfCharsWritten);
#else // _WIN32 || USE_ANSI
RLUTIL_PRINT(str);
#ifdef __cplusplus
Expand Down

0 comments on commit be8359b

Please sign in to comment.