Skip to content

A simple bug that has existed for more than ten years for Cursor Shapes #12496

Closed

Description

@ch1220

Steps to reproduce

powershell title bar right click -> properties -> select cusor shape other than legacy style

Expected behavior

**cursor shapes** 
- Legacy Style 
- Underscore
- Vertical Bar
- Empty Box
- Solid Box
The above cursor shapes can be switched at will.

Actual behavior

only legacy style is valid

Environment data

System environment : win7 or win8 or win10
**powershell 1.0 , 2.0 ......7.0   and 7.1.0-preview.2 All of the above versions have this problem.**
Name                           Value
----                           -----
PSVersion                      7.1.0-preview.2
PSEdition                      Core
GitCommitId                    7.1.0-preview.2
OS                             Microsoft Windows 10.0.19041
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. added
    Issue-Question
    on Apr 26, 2020
  2. mklement0 commented on Apr 26, 2020

    @mklement0
    Contributor

    Please follow the issue template when creating issues, so that we can understand and reproduce your problem, and know what versions / platforms it applies to.

  3. added
    Waiting on Author
    on Apr 26, 2020
  4. fMichaleczek commented on Apr 26, 2020

    @fMichaleczek
    Contributor

    This issue is related to PSReadline :
    PowerShell/PSReadLine#903

    The bug is external, it's resolved in the Terminal Repository :
    microsoft/terminal#4124

  5. ch1220 commented on Apr 27, 2020

    @ch1220
    Author

    template
    Detailed questions have been updated

  6. fMichaleczek commented on Apr 27, 2020

    @fMichaleczek
    Contributor

    ch1220 I gave you the answer, you should closed. If you have more questions, ask Microsoft/Terminal.

  7. added
    Resolution-External
    and removed
    Waiting on Author
    on Apr 28, 2020
  8. ghost closed this as completedon Apr 29, 2020
  9. 8192bits commented on Mar 19, 2026

    @8192bits

    For anyone still hitting this in 2026 on conhost with PowerShell 5.1 or 7.x,
    I patched the PSReadLine 2.4.5 DLL directly to fix this by re-emitting
    the ANSI cursor sequence in ReallyRender() after CursorVisible is restored.

    CursorShape

    No recompilation needed. drop the DLL, set up $PROFILE, done.
    Providing persistent cursor shape.

    Feedback welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionResolution-External

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions