Update common.cpp
This commit is contained in:
parent
943e5471cd
commit
04ff4fda39
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ void console_init(console_state & con_st) {
|
|||
// Turn off ICANON (ENABLE_LINE_INPUT) and ECHO (ENABLE_ECHO_INPUT)
|
||||
dwMode &= ~(ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT);
|
||||
SetConsoleMode(hConIn, dwMode);
|
||||
|
||||
}else{
|
||||
// Set console input codepage to UTF8
|
||||
_setmode(_fileno(stdin), _O_U8TEXT);
|
||||
// Set locale to Chinese Simplified UTF-8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue