feat: make cursor visible on exit
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
using Spectre.Console;
|
||||
namespace AnchorCli.Commands;
|
||||
|
||||
public class ExitCommand : ICommand
|
||||
{
|
||||
public string Name => "exit";
|
||||
public string Description => "Exit the application";
|
||||
|
||||
public Task ExecuteAsync(string[] args, CancellationToken ct)
|
||||
{
|
||||
AnsiConsole.MarkupLine("[green]Goodbye![/]");
|
||||
Environment.Exit(0);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
using Spectre.Console;
|
||||
namespace AnchorCli.Commands;
|
||||
|
||||
public class ExitCommand : ICommand
|
||||
{
|
||||
public string Name => "exit";
|
||||
public string Description => "Exit the application";
|
||||
|
||||
public Task ExecuteAsync(string[] args, CancellationToken ct)
|
||||
{
|
||||
AnsiConsole.MarkupLine("[green]Goodbye![/]");
|
||||
Console.CursorVisible = true;
|
||||
Environment.Exit(0);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user