forked from HAMGZZ/DEATHRAY-ControlProgram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
50 lines (34 loc) · 1.06 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
48
49
50
using System;
using System.IO.Ports;
using System.Threading;
namespace ControllProgram
{
public class Program
{
public static void Main()
{
Console.WriteLine("DeathRay computer prompt Copyright(C) 2020 Lewis Hamilton\n\rThis program comes with ABSOLUTELY NO WARRANTY; for details type `warranty'.\n\r");
Console.WriteLine("Available Ports:");
foreach (string s in SerialPort.GetPortNames())
{
Console.WriteLine(" {0}", s);
}
var database = new StarDatabase();
Remote remote = new Remote();
Term vt4100 = new Term(database, remote);
Console.CancelKeyPress += delegate
{
vt4100.end();
//controller.EndComms();
Environment.Exit(0);
};
vt4100.draw();
Thread.Sleep(100);
while (true)
{
vt4100.update();
Thread.Sleep(75);
}
}
}
}