Mercurial > repos > blastem
view terminal_win.c @ 1717:b11cfa655c61
Added implementations of a bunch of 16-bit arithmetic instructions and some DD/FD prefix instructions in new Z80 core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 30 Jan 2019 09:32:56 -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; } }