comparison terminal_win.c @ 799:0b692b5d154b

Merge
author Michael Pavone <pavone@retrodev.com>
date Sun, 26 Jul 2015 13:25:31 -0700
parents 792be135d3af
children 1af7d1cdcc66
comparison
equal deleted inserted replaced
798:062a2199daf6 799:0b692b5d154b
1 #include <windows.h>
2 #include <stdio.h>
3
4 void init_terminal()
5 {
6 static init_done;
7 if (!init_done) {
8 AllocConsole();
9 freopen("CONIN$", "r", stdin);
10 freopen("CONOUT$", "w", stdout);
11 freopen("CONOUT$", "w", stderr);
12 }
13 }