fix backspaces ignored on Linux/macOS in SDV 1.5.5+

This commit is contained in:
Jesse Plamondon-Willard 2022-01-15 13:27:23 -05:00
parent a8985e122e
commit 8ebb9ce8d4
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 4 additions and 3 deletions

View File

@ -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)!

View File

@ -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))
{