Mercurial > repos > blastem
view terminal_win.c @ 804:59e664fa2da8
Fix a search/replace bug from the old Win32 GDB remote debugging work and replace some more print+exit combos with fatal_error
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 26 Jul 2015 17:21:49 -0700 |
parents | 792be135d3af |
children | 1af7d1cdcc66 |
line wrap: on
line source
#include <windows.h> #include <stdio.h> void init_terminal() { static init_done; if (!init_done) { AllocConsole(); freopen("CONIN$", "r", stdin); freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr); } }