From fe006a525644f8eb35525d96c22fa21561edfa35 Mon Sep 17 00:00:00 2001 From: TomiEckert Date: Thu, 12 Mar 2026 00:49:12 +0100 Subject: [PATCH] feat: make cursor visible on exit --- Commands/ExitCommand.cs | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/Commands/ExitCommand.cs b/Commands/ExitCommand.cs index f14ff91..585875c 100644 --- a/Commands/ExitCommand.cs +++ b/Commands/ExitCommand.cs @@ -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; + } +}