Skip to content

'Phantom' symbols after some commands (exit, clear) in the PowerShell running on MacOS #20104

@GeorgiiZagladin

Description

@GeorgiiZagladin

Prerequisites

Steps to reproduce

  • MacOS Ventura v. 13.5
  • Open any shell (zsh, bash, fish)
  • Install the latest stable version via brew (brew install --cask powershell)
  • Run pwsh script
  • Try to print exit, or clear or l symbols.

Expected behavior

Nothing more is visible after the printed symbols.

Actual behavior

After the command text, there will be 'phantom' symbols like

PS /Users/georgiizagladin> clear1;33R
PS /Users/georgiizagladin> exit3;32R
PS /Users/georgiizagladin> l7;35Re7;41Ra7;47Rr7;53R

However, these symbols are not blocking the execution of the command (you may finish the command, for example, print 'clear', press 'enter' key, and the log will be cleared)

'1;33R' and '3;32R' looks like the coordinates of the pointer in the terminal window.

Error details

Nothing is printed out.

Environment data

PS /Users/georgiizagladin> $PSVersionTable                                        

Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Darwin 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:53 PDT…
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

image image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions