Mercurial > repos > blastem
view terminal_win.c @ 810:1f75614d7be8
Fixed an ommission in the CHANGELOG added basic description of extra utilities to README
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 26 Jul 2015 19:45:44 -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); } }