#pragma once
#define print env.console.Put

#include "TclInterpreter.h"
#include "mousestate.h"
#include "ConsoleWindow.h"
#include <comutil.h>
#include <Shobjidl.h>


class Environment :
	public TclInterpreter
{

public:
	Environment(void);
	~Environment(void);
	int InitConsole();
	int LoadConfiguration(char * filename);
	int LoadBlog(char * filename);
	
	HINSTANCE hInstance;
	MouseState mouse;								// Maintains thecurrent state of the mouse for everyone to see
    Color TransparentColorLo; // lo end of transparent color range
    Color TransparentColorHi; // hi end of transparent color range
	int dpiX, dpiY;

	HCURSOR normalcursor;
	HCURSOR resizecursor;
	HCURSOR handcursor;

	ConsoleWindow console;
	std::wstring appname; // the application's name
	std::wstring mode; // the current mode

	// rpc timeout
	unsigned int Timeout;

};

