fix backspaces ignored on Linux/macOS in SDV 1.5.5+
This commit is contained in:
parent
a8985e122e
commit
8ebb9ce8d4
|
@ -3,12 +3,13 @@
|
||||||
# Release notes
|
# Release notes
|
||||||
## Upcoming release
|
## Upcoming release
|
||||||
* For players:
|
* 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.
|
* Added the new game build number to the SMAPI console + log.
|
||||||
* Fixed extra newlines shown in the console in non-developer mode.
|
* 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 outdated instructions in Steam error message.
|
||||||
* Fixed uninstaller not removing `StardewModdingAPI.deps.json` file.
|
* 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.
|
* 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.
|
* Updated compatibility list.
|
||||||
* Improved translations. Thanks to ChulkyBow (added Ukrainian)!
|
* Improved translations. Thanks to ChulkyBow (added Ukrainian)!
|
||||||
|
|
|
@ -51,7 +51,7 @@ namespace StardewModdingAPI.Framework.Logging
|
||||||
|
|
||||||
if (buffer.Length == 0)
|
if (buffer.Length == 0)
|
||||||
this.Out.Write(buffer, index, count);
|
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);
|
this.Out.Write(buffer, index + 1, count - 1);
|
||||||
else if (this.IsEmptyOrNewline(buffer))
|
else if (this.IsEmptyOrNewline(buffer))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue