Mercurial > repos > blastem
view terminal_win.c @ 2411:efd2242c2c23
Fix silly TMS9918A bug, make CRAM viewer sorta useful in TMS9918A modes, make mode4 address map externally viewable for debugger
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 04 Jan 2024 22:13:46 -0800 |
parents | 0433fdd9ba66 |
children |
line wrap: on
line source
#include <windows.h> #include <stdio.h> static char init_done; void force_no_terminal() { init_done = 1; } void init_terminal() { if (!init_done) { AllocConsole(); freopen("CONIN$", "r", stdin); freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr); init_done = 1; } }