diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-04-12 12:35:34 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-04-12 12:35:34 -0400 |
commit | 5f73d47fb9dfe7ac2733a0a5fe57cf96639594f9 (patch) | |
tree | b0fc0f746a9a47d2844207fdc4e38edb07488a90 /src/SMAPI | |
parent | f635c090959935cfc98df913197022fa16ca21fe (diff) | |
download | SMAPI-5f73d47fb9dfe7ac2733a0a5fe57cf96639594f9.tar.gz SMAPI-5f73d47fb9dfe7ac2733a0a5fe57cf96639594f9.tar.bz2 SMAPI-5f73d47fb9dfe7ac2733a0a5fe57cf96639594f9.zip |
add config option to disable console colors (#707)
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Framework/Monitor.cs | 4 | ||||
-rw-r--r-- | src/SMAPI/SMAPI.config.json | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/Monitor.cs b/src/SMAPI/Framework/Monitor.cs index f630c7fe..44eeabe6 100644 --- a/src/SMAPI/Framework/Monitor.cs +++ b/src/SMAPI/Framework/Monitor.cs @@ -15,8 +15,8 @@ namespace StardewModdingAPI.Framework /// <summary>The name of the module which logs messages using this instance.</summary> private readonly string Source; - /// <summary>Handles writing color-coded text to the console.</summary> - private readonly ColorfulConsoleWriter ConsoleWriter; + /// <summary>Handles writing text to the console.</summary> + private readonly IConsoleWriter ConsoleWriter; /// <summary>Manages access to the console output.</summary> private readonly ConsoleInterceptionManager ConsoleInterceptor; diff --git a/src/SMAPI/SMAPI.config.json b/src/SMAPI/SMAPI.config.json index 57b4f885..a426b0ef 100644 --- a/src/SMAPI/SMAPI.config.json +++ b/src/SMAPI/SMAPI.config.json @@ -73,6 +73,7 @@ copy all the settings, or you may cause bugs due to overridden changes in future * automatically on Linux or Windows. * - LightBackground: use darker text colors that look better on a white or light background. * - DarkBackground: use lighter text colors that look better on a black or dark background. + * - None: disables all colors, so everything is written in the default terminal color. * * For available color codes, see https://docs.microsoft.com/en-us/dotnet/api/system.consolecolor. * |