From 1efbf4fea35861804732d25d11fb5a67b9705df7 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Thu, 25 Jun 2026 07:13:03 +0200 Subject: [PATCH] Allow UTF-8 console input All credits going to: @rus-art Taken from here: https://github.com/nuke-build/nuke/pull/1321 --- src/Fallout.Build/Utilities/ConsoleUtility.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Fallout.Build/Utilities/ConsoleUtility.cs b/src/Fallout.Build/Utilities/ConsoleUtility.cs index 1e59cb972..8d878d01a 100644 --- a/src/Fallout.Build/Utilities/ConsoleUtility.cs +++ b/src/Fallout.Build/Utilities/ConsoleUtility.cs @@ -49,7 +49,8 @@ public static string PromptForInput(string question, string defaultValue) key = Console.ReadKey(intercept: true); if (ConsoleKey.A <= key.Key && key.Key <= ConsoleKey.Z || ConsoleKey.D0 <= key.Key && key.Key <= ConsoleKey.D9 - || new[] { '.', '/', '\\', '_', '-' }.Any(x => x == key.KeyChar)) + || new[] { '.', '/', '\\', '_', '-' }.Any(x => x == key.KeyChar) + || char.IsLetterOrDigit(key.KeyChar)) input.Append(key.KeyChar); else if (key.Key == ConsoleKey.Backspace && input.Length > 0) input.Remove(input.Length - 1, length: 1);