Skip to content

FSI's cursor does not correctly handle full-width characters #14347

@ijklam

Description

@ijklam

FSI's cursor does not correctly handle full-width characters.

GIF 2022-11-18 11-05-47

Repro steps

Provide the steps required to reproduce the problem:

  1. Run dotnet fsi
  2. Input some full-width characters
  3. Move the cursor left or right

Expected behavior

The cursor should not appear inside the character.

Actual behavior

The cursor will appear inside the character.

Known workarounds

The NStack.ustring in package NStack.Core has a property named ConsoleWidth, which will be useful to fix the bug.

图片

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VS-FSIVS window and commands for F# InteractiveBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions