mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 11:37:01 +00:00
贪吃蛇+修改命令提示符
This commit is contained in:
@@ -86,7 +86,9 @@ namespace CMLeonOS
|
||||
|
||||
public void Run()
|
||||
{
|
||||
User currentUser = userSystem.CurrentLoggedInUser;
|
||||
bool shouldExit = false;
|
||||
|
||||
while (true)
|
||||
{
|
||||
// 显示当前文件夹路径作为提示符(彩色)
|
||||
@@ -94,6 +96,10 @@ namespace CMLeonOS
|
||||
ConsoleColor originalColor = Console.ForegroundColor;
|
||||
// Console.ForegroundColor = ConsoleColor.Cyan;
|
||||
// Console.Write($"{currentPath} | {prompt}");
|
||||
Console.ForegroundColor = ConsoleColor.DarkGreen;
|
||||
Console.Write($"{currentUser.Username}");
|
||||
Console.ForegroundColor = ConsoleColor.White;
|
||||
Console.Write($" $ ");
|
||||
Console.ForegroundColor = ConsoleColor.Magenta;
|
||||
Console.Write($"{currentPath}");
|
||||
Console.ForegroundColor = ConsoleColor.White;
|
||||
@@ -1628,6 +1634,11 @@ namespace CMLeonOS
|
||||
Commands.LabyrinthCommand.ProcessLabyrinth();
|
||||
}
|
||||
|
||||
public void PlaySnake()
|
||||
{
|
||||
Commands.Utility.SnakeCommand.PlaySnake();
|
||||
}
|
||||
|
||||
public void ProcessAlias(string args)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(args))
|
||||
|
||||
Reference in New Issue
Block a user