From 38fb339f82a2b4623dbb50d62822ffd3f98b06df Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sat, 10 Dec 2022 15:29:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Unix=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=85=89=E6=A0=87=E5=9B=9E=E6=98=BE=E8=A2=AB=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/Program.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); }