Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Multiline prompt behaves incorrectly on macOS #3687

Copy link
Copy link
@tLXvGt

Description

@tLXvGt
Issue body actions

Steps to reproduce

Run:
function prompt { "Hello, World`r`nHi> " }

Expected behavior

On Windows PowerShell correctly prompts me with 2 lines:

Hello, World
Hi> [cursor]

I can write anything and prompt will stay the same.

Actual behavior

On macOS PowerShell correctly prompts me with 2 lines:

Hello, World
Hi> [cursor]

However, when I press any key prompt copies first line into second one and prompt looks like this:

Hello, World
Hell[cursor]

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.0.0-alpha
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   3.0.0.0
GitCommitId                    v6.0.0-alpha.18
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.