view terminal_win.c @ 829:cc05444a4a4e

WIP debugger improvements. Partial support for display command in 68K debugger. Minor refactor to support commands on a breakpoint.
author Michael Pavone <pavone@retrodev.com>
date Fri, 25 Sep 2015 18:12:55 -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);
	}
}