-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommands.cs
101 lines (83 loc) · 2.67 KB
/
Commands.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
using System;
namespace RAGON_OS
{
class Commands
{
public static int input { get; private set; }
public static void clear()
{
Console.Clear();
Console.WriteLine(@"
/ __ \/ | / ____/ __ \/ | / / / __ \/ ___/
/ /_/ / /| |/ / __/ / / / |/ / / / / /\__ \
/ _, _/ ___ / /_/ / /_/ / /| / / /_/ /___/ /
/_/ |_/_/ |_\____/\____/_/ |_/____\____//____/
/_____/
");
}
public static void Halt()
{
Cosmos.System.power.shutdown();
}
public static void reboot()
{
Cosmos.System.Power.Reboot();
}
public static void backgroundcolor()
{
Console.BackgroundColor = ConsoleColor.Blue;
Console.Clear();
Console.Write("changed; ");
}
public static void version()
{
Console.WriteLine("RAGON_OS V 0.001 OPEN SOURCE LEARNING OPERATION SYSTEM");
Console.WriteLine("POWERED BE C# COSMOS PROJECT");
}
public static void help()
{
Console.WriteLine(@"
___
|__ \
/ /
|_|
(_)
");
Console.WriteLine("1.change background text color to blue with .blue.cyan.red.blue.yellow/background");
Console.WriteLine("clear commands with cls or clear");
Console.WriteLine("shutdown or power off for shut down and restart or reboot for reboot");
Console.WriteLine("type (banner) for recopy the banner");
}
public static void banner()
{
Console.WriteLine(@"
/ __ \/ | / ____/ __ \/ | / / / __ \/ ___/
/ /_/ / /| |/ / __/ / / / |/ / / / / /\__ \
/ _, _/ ___ / /_/ / /_/ / /| / / /_/ /___/ /
/_/ |_/_/ |_\____/\____/_/ |_/____\____//____/
/_____/
");
}
public static void BC()
{
Console.BackgroundColor = ConsoleColor.Cyan;
Console.Write("changed;");
}
public static void bc1()
{
Console.BackgroundColor = ConsoleColor.Yellow;
Console.Write("changed; ");
}
public static void bc2()
{
Console.BackgroundColor = ConsoleColor.Red;
Console.Write("changed; ");
}
public static void bc3()
{
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.Write("changed; ");
}
}
}