Mercurial > repos > blastem
view terminal_win.c @ 820:cf6149b7c6e5
Implement a tiny bit of CPM BDOS and add a corresponding Z80 core driver so that simple CPM programs like ZEXDOC/ZEXALL can be run against my Z80 core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 29 Jul 2015 00:05:21 -0700 |
parents | 1af7d1cdcc66 |
children | 0433fdd9ba66 |
line wrap: on
line source
#include <windows.h> #include <stdio.h> void init_terminal() { static char init_done; if (!init_done) { AllocConsole(); freopen("CONIN$", "r", stdin); freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr); } }