-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
47 lines (44 loc) · 1.25 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLua;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.Threading;
using System.Collections.Concurrent;
using System.Threading.Tasks;
namespace Maverick
{
public static class Program
{
//[DllImport("kernel32.dll")]
//static extern IntPtr GetConsoleWindow();
//[DllImport("user32.dll")]
//static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
//const int SW_HIDE = 0;
//const int SW_SHOW = 5;
public static void HideConsole()
{
//ShowWindow(GetConsoleWindow(), SW_HIDE);
}
public static void ShowConsole()
{
//ShowWindow(GetConsoleWindow(), SW_SHOW);
}
static void Main(params string[] args)
{
try
{
Console.SetWindowSize(100, 50);
new MaverickHost(args).Run();
}
catch (Exception e)
{
ShowConsole();
Console.Write("Fatal exception:\n" + Utility.ExceptionToString(e));
Console.ReadKey();
}
}
}
}