-
Notifications
You must be signed in to change notification settings - Fork 8.4k
What powershell prints on end of command to show a PROMPT. #16118
Copy link
Copy link
Closed
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Interactive-PSReadLinePSReadline related issuesPSReadline related issues
Metadata
Metadata
Assignees
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Interactive-PSReadLinePSReadline related issuesPSReadline related issues
Type
Fields
Give feedbackNo fields configured for issues without a type.
Prerequisites
Steps to reproduce
Hey there,
I am trying to mimic user input in
expectstyle forpowershell. Via sending commands topwsh'sstdin.And I don't understand how I actually can be sure that command is done.
But now exactly I am trying to understand what I need to send powershel to be able to run a next command.
I see that
pwshexpects that some byte sequences will be given to it as an indication that command is done.And they different from time to time.
\u{1b}[11;68R\u{1b}[11;59R\u{1b}[11;19RAs I guess a line-disciple does this or this is done via your means?
To see what I mean you can use
zhiburt/expectrl#14
and run
Expected behavior
A prompt printed after typing command + `\r`Actual behavior
A prompt isn't printed on sending `\r` as `ENTER`Error details
No response
Environment data