Mercurial > repos > blastem
view terminal_win.c @ 815:1f3ddeaacaee
Change version to 0.3.X so intermediate source builds do not get an inappropriate version number
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 27 Jul 2015 23:42:54 -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); } }