Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What powershell prints on end of command to show a PROMPT. #16118

Closed
5 tasks done
zhiburt opened this issue Sep 17, 2021 · 5 comments
Closed
5 tasks done

What powershell prints on end of command to show a PROMPT. #16118

zhiburt opened this issue Sep 17, 2021 · 5 comments
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

Comments

@zhiburt
Copy link

zhiburt commented Sep 17, 2021

Prerequisites

Steps to reproduce

Hey there,

I am trying to mimic user input in expect style for powershell. Via sending commands to pwsh's stdin.
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

cargo run --example interact

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

Name                           Value
----                           -----
PSVersion                      7.1.4
PSEdition                      Core
GitCommitId                    7.1.4
OS                             Linux 5.12.14-300.fc34.x86_64 #1 SMP Wed Jun 30 18:30:21 UTC 2021
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0


### Visuals

_No response_
@zhiburt zhiburt added the Needs-Triage The issue is new and needs to be triaged by a work group. label Sep 17, 2021
@zhiburt
Copy link
Author

zhiburt commented Sep 17, 2021

zhiburt/expectrl#10

@zhiburt
Copy link
Author

zhiburt commented Sep 17, 2021

Note: the behavior on windows seems to be different

@iSazonov iSazonov added the Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a label Sep 17, 2021
@SydneyhSmith SydneyhSmith added the WG-Interactive-PSReadLine PSReadline related issues label May 16, 2022
Copy link
Contributor

This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

1 similar comment
Copy link
Contributor

This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Resolution-No Activity Issue has had no activity for 6 months or more label Nov 16, 2023
Copy link
Contributor

This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants