mirror of
https://github.com/simh/simh.git
synced 2026-01-13 15:27:14 +00:00
CONSOLE: Properly set the line output mode under windows version prior to Win10
As reported in #438 by Dave Wise.
This commit is contained in:
parent
f617f63ae0
commit
bf018a19d9
@ -3229,7 +3229,8 @@ if ((std_input) && /* If Not Background pro
|
||||
if ((std_output) && /* If Not Background process? */
|
||||
(std_output != INVALID_HANDLE_VALUE)) {
|
||||
if (GetConsoleMode(std_output, &saved_output_mode))
|
||||
SetConsoleMode(std_output, ENABLE_VIRTUAL_TERMINAL_PROCESSING|ENABLE_PROCESSED_OUTPUT);
|
||||
if (!SetConsoleMode(std_output, ENABLE_VIRTUAL_TERMINAL_PROCESSING|ENABLE_PROCESSED_OUTPUT))
|
||||
SetConsoleMode(std_output, ENABLE_PROCESSED_OUTPUT);
|
||||
}
|
||||
if (sim_log) {
|
||||
fflush (sim_log);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user