-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
I was trying to run an encoded PShell command and ran into an issue with the character limit of Console.Readline();
I added this and replaced the 2 instances of Console.Readline(); with ReadLine();
public static string ReadLine()
{
byte[] inputBuffer = new byte[1024];
Stream inputStream = Console.OpenStandardInput(inputBuffer.Length);
Console.SetIn(new StreamReader(inputStream, Console.InputEncoding, false, inputBuffer.Length));
string strInput = Console.ReadLine();
return strInput;
}
Tested and it works.
Thanks for the work on this project.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels