Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita8271f9

Browse files
update
1 parent4a98792 commita8271f9

File tree

13 files changed

+16228
-15339
lines changed

13 files changed

+16228
-15339
lines changed

‎ebOS/Kernel.cs‎

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ protected override void Run()
4949
{
5050

5151
Console.Write("ebOS:> ");
52-
stringi=Console.ReadLine().ToLower();
52+
stringi1=Console.ReadLine();
53+
stringi=i1.ToLower();
5354
string[]ilist=i.Split(' ');
5455
switch(ilist[0])
5556
{
@@ -96,7 +97,7 @@ protected override void Run()
9697
Console.Clear();
9798
break;
9899
case"echo":
99-
Console.WriteLine(i.Remove(0,5));
100+
Console.WriteLine(i1.Remove(0,5));
100101
break;
101102
//apps
102103
case"calc":
@@ -122,10 +123,9 @@ protected override void Run()
122123
//default
123124
default:
124125
Console.ForegroundColor=ConsoleColor.Red;
125-
Console.WriteLine(i+" is not a command!");
126+
Console.WriteLine("\""+i+"\""+" is not a command!");
126127
Console.ForegroundColor=ConsoleColor.White;
127128
break;
128-
129129
}
130130
}
131131
}
@@ -137,27 +137,39 @@ static void about()
137137
}
138138
staticvoidhelp()
139139
{
140-
Console.WriteLine("ebOS "+ver+"\n");
141-
Console.WriteLine(@"system commands:
142-
shutdown - shut down
143-
reboot/restart - reboot the system
144-
145-
info:
146-
about/ver - show version
147-
help - show this help message
148-
149-
other:
150-
zen - show the zen of python
151-
152-
terminal:
153-
cls - clear terminal
154-
echo - echo text
155-
156-
apps:
157-
calc - calculator
158-
crypt - encrypt and decrypt messages");
159-
//"hello - display greeting\n" +
160-
//"zen - display zen of python\n");
140+
Console.ForegroundColor=ConsoleColor.Green;
141+
Console.WriteLine("ebOS "+ver);
142+
Console.ForegroundColor=ConsoleColor.Blue;
143+
Console.WriteLine("");
144+
Console.ForegroundColor=ConsoleColor.Green;
145+
Console.WriteLine("system commands: ");
146+
Console.ForegroundColor=ConsoleColor.Blue;
147+
Console.WriteLine("shutdown - shut down");
148+
Console.WriteLine("reboot/restart - reboot the system");
149+
Console.WriteLine("");
150+
Console.ForegroundColor=ConsoleColor.Green;
151+
Console.WriteLine("info:");
152+
Console.ForegroundColor=ConsoleColor.Blue;
153+
Console.WriteLine("about/ver - show version");
154+
Console.WriteLine("help - show this help message");
155+
Console.WriteLine("");
156+
Console.ForegroundColor=ConsoleColor.Green;
157+
Console.WriteLine("other:");
158+
Console.ForegroundColor=ConsoleColor.Blue;
159+
Console.WriteLine("zen - show the zen of python");
160+
Console.WriteLine("");
161+
Console.ForegroundColor=ConsoleColor.Green;
162+
Console.WriteLine("terminal:");
163+
Console.ForegroundColor=ConsoleColor.Blue;
164+
Console.WriteLine("cls - clear terminal");
165+
Console.WriteLine("echo - echo text");
166+
Console.WriteLine("");
167+
Console.ForegroundColor=ConsoleColor.Green;
168+
Console.WriteLine("apps:");
169+
Console.ForegroundColor=ConsoleColor.Blue;
170+
Console.WriteLine("calc - calculator ");
171+
Console.WriteLine("crypt - encrypt and decrypt messages");
172+
Console.ForegroundColor=ConsoleColor.White;
161173
}
162174

163175
}

‎ebOS/XOX.cs‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// in progress
2+
usingSystem;
3+
namespaceebOS
4+
{
5+
publicclassXOX
6+
{
7+
staticstring[]game1={" "," "," "};
8+
staticstring[]game2={" "," "," "};
9+
staticstring[]game3={" "," "," "};
10+
staticstring[][]game={
11+
game1,
12+
game2,
13+
game3};
14+
15+
voiddraw()
16+
{
17+
Console.Clear();
18+
Console.WriteLine("+-+-+-+");
19+
foreach(string[]xingame)
20+
{
21+
Console.Write("|");
22+
foreach(stringyinx)
23+
{
24+
Console.Write(y+"|");
25+
}
26+
//Console.WriteLine(x);
27+
Console.WriteLine("+-+-+-+");
28+
}
29+
Console.WriteLine("+-+-+-+");
30+
}
31+
publicvoidRun()
32+
{
33+
draw();
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp