Skip to content

Commit

Permalink
调整控制台输出文字效果
Browse files Browse the repository at this point in the history
  • Loading branch information
andywu188 committed May 26, 2024
1 parent 5c2ce23 commit d0e8edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NewLife.Agent/ServiceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ protected virtual void ProcessMenu()
//输出菜单
ShowMenu();
Console.Write("请输入命令序号:");
Console.WriteLine();

//读取命令
var key = Console.ReadKey();
if (key.KeyChar == '0') break;
Console.WriteLine();
Console.WriteLine();

if (key.KeyChar == '0') break;
try
{
var result = Command.Handle(key.KeyChar, args);
Expand Down

0 comments on commit d0e8edf

Please sign in to comment.