summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Logging
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-01-15 13:27:23 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-01-15 13:27:23 -0500
commit8ebb9ce8d4c554b077e1e6286531c101d64c019d (patch)
treecfebf32f094a189e418c5587b0dfe60845bf1617 /src/SMAPI/Framework/Logging
parenta8985e122e9ebd3cb1545971474b95d34058f896 (diff)
downloadSMAPI-8ebb9ce8d4c554b077e1e6286531c101d64c019d.tar.gz
SMAPI-8ebb9ce8d4c554b077e1e6286531c101d64c019d.tar.bz2
SMAPI-8ebb9ce8d4c554b077e1e6286531c101d64c019d.zip
fix backspaces ignored on Linux/macOS in SDV 1.5.5+
Diffstat (limited to 'src/SMAPI/Framework/Logging')
-rw-r--r--src/SMAPI/Framework/Logging/InterceptingTextWriter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Logging/InterceptingTextWriter.cs b/src/SMAPI/Framework/Logging/InterceptingTextWriter.cs
index 41a3abcb..36f81d22 100644
--- a/src/SMAPI/Framework/Logging/InterceptingTextWriter.cs
+++ b/src/SMAPI/Framework/Logging/InterceptingTextWriter.cs
@@ -51,7 +51,7 @@ namespace StardewModdingAPI.Framework.Logging
if (buffer.Length == 0)
this.Out.Write(buffer, index, count);
- else if (buffer[0] == this.IgnoreChar)
+ else if (buffer[0] == this.IgnoreChar || char.IsControl(buffer[0])) // ignore control characters like backspace
this.Out.Write(buffer, index + 1, count - 1);
else if (this.IsEmptyOrNewline(buffer))
{