view terminal_win.c @ 830:5a3ac6093ea2

Add support for executing a list of debugger commands when a breakpoint is hit
author Michael Pavone <pavone@retrodev.com>
date Wed, 14 Oct 2015 09:12:11 -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);
	}
}