diff --git a/src/N_m3u8DL-RE/Program.cs b/src/N_m3u8DL-RE/Program.cs index b561d2d..4217a59 100644 --- a/src/N_m3u8DL-RE/Program.cs +++ b/src/N_m3u8DL-RE/Program.cs @@ -49,7 +49,12 @@ namespace N_m3u8DL_RE private static void Console_CancelKeyPress(object? sender, ConsoleCancelEventArgs e) { Logger.WarnMarkUp("Force Exit..."); - try { Console.CursorVisible = true; } catch { } + try + { + Console.CursorVisible = true; + if (!OperatingSystem.IsWindows()) + System.Diagnostics.Process.Start("stty", "echo"); + } catch { } Environment.Exit(0); }