summaryrefslogtreecommitdiff
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
parenta8985e122e9ebd3cb1545971474b95d34058f896 (diff)
downloadSMAPI-8ebb9ce8d4c554b077e1e6286531c101d64c019d.tar.gz
SMAPI-8ebb9ce8d4c554b077e1e6286531c101d64c019d.tar.bz2
SMAPI-8ebb9ce8d4c554b077e1e6286531c101d64c019d.zip
fix backspaces ignored on Linux/macOS in SDV 1.5.5+
-rw-r--r--docs/release-notes.md5
-rw-r--r--src/SMAPI/Framework/Logging/InterceptingTextWriter.cs2
2 files changed, 4 insertions, 3 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index 735c7c12..06d75b15 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -3,12 +3,13 @@
# Release notes
## Upcoming release
* For players:
- * SMAPI now auto-fixes maps loaded without a required tilesheet to prevent errors.
+ * Added auto-fix for custom maps which don't have a required tilesheet.
* Added the new game build number to the SMAPI console + log.
* Fixed extra newlines shown in the console in non-developer mode.
+ * Fixed macOS launch issue when using some terminals (thanks to bruce2409!).
+ * Fixed Linux/macOS terminal ignoring backspace in Stardew Valley 1.5.5+.
* Fixed outdated instructions in Steam error message.
* Fixed uninstaller not removing `StardewModdingAPI.deps.json` file.
- * Fixed launch issue on macOS when using some terminals (thanks to bruce2409!).
* Simplified [running without a terminal on Linux/macOS](https://stardewvalleywiki.com/Modding:Player_Guide/Troubleshooting#SMAPI_doesn.27t_recognize_controller_.28Steam_only.29) when needed.
* Updated compatibility list.
* Improved translations. Thanks to ChulkyBow (added Ukrainian)!
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))
{