-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathInOutConsole.cs
More file actions
56 lines (45 loc) · 1.23 KB
/
InOutConsole.cs
File metadata and controls
56 lines (45 loc) · 1.23 KB
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
51
52
53
54
55
56
using System;
using ScriptCs.Contracts;
namespace RemoteCSharpShell
{
public class InOutConsole : IConsole
{
private readonly VirtualTerminal terminal;
public InOutConsole(VirtualTerminal terminal)
{
this.terminal = terminal;
}
public void Write(string value)
{
this.terminal.Write(value);
}
public void WriteLine()
{
this.terminal.WriteLine();
}
public void WriteLine(string value)
{
this.terminal.WriteLine(value);
}
public string ReadLine()
{
throw new NotImplementedException("ReadLine not implemented");
}
public void Clear()
{
throw new NotImplementedException("Clear not implemented");
}
public void Exit()
{
}
public void ResetColor()
{
this.ForegroundColor = ConsoleColor.White;
}
public ConsoleColor ForegroundColor
{
get { return this.terminal.ForegroundColor; }
set { this.terminal.ForegroundColor = value; }
}
}
}