Skip to content

Commit

Permalink
使用tput替代stty (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda authored Nov 29, 2024
1 parent 77fdaaf commit 3081701
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace N_m3u8DL_RE.CommandLine;

internal partial class CommandInvoker
{
public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20241124";
public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20241129";

[GeneratedRegex("((best|worst)\\d*|all)")]
private static partial Regex ForStrRegex();
Expand Down
2 changes: 1 addition & 1 deletion src/N_m3u8DL-RE/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static void Console_CancelKeyPress(object? sender, ConsoleCancelEventArg
{
Console.CursorVisible = true;
if (!OperatingSystem.IsWindows())
System.Diagnostics.Process.Start("stty", "echo");
System.Diagnostics.Process.Start("tput", "cnorm");
} catch { }
Environment.Exit(0);
}
Expand Down

0 comments on commit 3081701

Please sign in to comment.