-
-
Notifications
You must be signed in to change notification settings - Fork 970
Closed
Milestone
Description
I noticed that ShellStream.ReadLine() is not implemented using ShellStream.Expect(). I was wondering how I would wait for a linefeed using ShellStream.Expect()?
The reason for this is that I want to read from the shell line-by-line. And the end of a line can be a linefeed or a command promt.
So for reading a single line I tried this:
ShellStream.Expect(new Regex("\n|>"));
But it returns everything up to the next command promt and not just the first line. What am I doing wrong?
Metadata
Metadata
Assignees
Labels
No labels