comparison terminal_win.c @ 794:792be135d3af

Spawn a terminal for the debugger when needed if we are not already attached to one
author Michael Pavone <pavone@retrodev.com>
date Sun, 26 Jul 2015 01:11:04 -0700
parents
children 1af7d1cdcc66
comparison
equal deleted inserted replaced
793:9aff36a172b2 794:792be135d3af
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 }