What powershell prints on end of command to show a PROMPT. #16118
Labels
Issue-Question
ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
Needs-Triage
The issue is new and needs to be triaged by a work group.
Resolution-No Activity
Issue has had no activity for 6 months or more
WG-Interactive-PSReadLine
PSReadline related issues
Prerequisites
Steps to reproduce
Hey there,
I am trying to mimic user input in
expect
style 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
pwsh
expects 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;19R
As 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
The text was updated successfully, but these errors were encountered: