Skip to content

-ViModeIndicator "Cursor" option not applying correctly on Windows Terminal #3334

@nlguerra2003

Description

@nlguerra2003

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

N/A

Screenshot

N/A

Environment data

PS Version: 7.2.4
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.2.5
PSReadLine EditMode: Vi
OS: 10.0.22621.1 (WinBuild.160101.0800)
BufferWidth: 120
BufferHeight: 30

Steps to reproduce

  • With Vi mode activated, use Set-PSReadLineOption -ViModeIndicator "Cursor"
  • Since the console starts on Insert mode, press scape to change to Normal.

Expected behavior

Like using "pure" powershell: cursor starts as "classic" (Insert mode) and then goes to "block" (Normal mode).

Actual behavior

Cursor stays the same, though it goes left one position.

Note that I've a vertical bar as the WT cursor, but I changed it to "classic" to see what happens and it doesn't work either.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions