mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-04 17:16:24 +02:00
Properly ignore control characters when adding input in CLI and Terminal processes
This commit is contained in:
@@ -41,8 +41,11 @@ internal class CliProcess() : Process("Cli")
|
||||
break;
|
||||
|
||||
default:
|
||||
currentInput += key.KeyChar;
|
||||
Console.Write(key.KeyChar);
|
||||
if (!char.IsControl(key.KeyChar))
|
||||
{
|
||||
currentInput += key.KeyChar;
|
||||
Console.Write(key.KeyChar);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user