view terminal_win.c @ 822:ac65086c031e

Pretty decent optimization of vdp_h40 and vdp_h32. Gets reasonably close to the speed of 0.2.0 in the worst case and is faster than 0.2.0 in others
author Michael Pavone <pavone@retrodev.com>
date Mon, 03 Aug 2015 20:06:56 -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);
	}
}