_setmode 2012 src/simh/sim_console.c _setmode (_fileno (sim_log), _O_BINARY); _setmode 2022 src/simh/sim_console.c _setmode (_fileno (sim_log), _O_TEXT);