diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-14 15:53:28 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-14 15:53:28 -0500 |
commit | f957af71d1533e6b3635c7f4ac31807367a99195 (patch) | |
tree | 071b416dddc9d90b4a099df4566d0825d7fc1b12 /src | |
parent | 82dd5b3068d7c049322ec37cfc29081cfdd419b4 (diff) | |
download | SMAPI-f957af71d1533e6b3635c7f4ac31807367a99195.tar.gz SMAPI-f957af71d1533e6b3635c7f4ac31807367a99195.tar.bz2 SMAPI-f957af71d1533e6b3635c7f4ac31807367a99195.zip |
fix console color support check (#206)
Diffstat (limited to 'src')
-rw-r--r-- | src/StardewModdingAPI.Installer/InteractiveInstaller.cs | 4 | ||||
-rw-r--r-- | src/StardewModdingAPI/Framework/Monitor.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/StardewModdingAPI.Installer/InteractiveInstaller.cs b/src/StardewModdingAPI.Installer/InteractiveInstaller.cs index d7279cf7..ef813eb3 100644 --- a/src/StardewModdingAPI.Installer/InteractiveInstaller.cs +++ b/src/StardewModdingAPI.Installer/InteractiveInstaller.cs @@ -295,12 +295,12 @@ namespace StardewModdingApi.Installer { try { - Console.ResetColor(); + Console.ForegroundColor = Console.ForegroundColor; return true; } catch (Exception) { - return false; + return false; // Mono bug } } diff --git a/src/StardewModdingAPI/Framework/Monitor.cs b/src/StardewModdingAPI/Framework/Monitor.cs index b492e5c7..39b567d8 100644 --- a/src/StardewModdingAPI/Framework/Monitor.cs +++ b/src/StardewModdingAPI/Framework/Monitor.cs @@ -133,12 +133,12 @@ namespace StardewModdingAPI.Framework { try { - Console.ResetColor(); + Console.ForegroundColor = Console.ForegroundColor; return true; } catch (Exception) { - return false; + return false; // Mono bug } } } |