Overview
When input Japanese string in LineEditor.ReadLine, unexpected behavior on cursor position and output.
Environment
version: 0.10.0
platform: windows-11x64
dotnet-sdk: 10.0.203
terminal: windows terminal with powershell-7.6.0, vscode terminal with powershell-7.6.0
Steps to reproduce
- write following code(file based app)
- run code by
dotnet run test.cs
- input Japanese string(like
あいうえお), copy and paste is also OK
#:package RadLine@0.10.0
using RadLine;
var editor = new LineEditor();
var l = await editor.ReadLine(default);
Console.WriteLine(l);
Expected
rendered あいうえお after prompt and cursor is placed end of line, like following
> あいうえお_ # '_' is cursor positoin
Actual
rendered as following
> あい
> あいう
> あいうえ
> あいうえお
> あいうえお
_ # '_' is cursor position
Additional Info
I tested on AnsiConsole.AskAsync<string> in Spectre.Console-0.55.2, work as I expected
Overview
When input Japanese string in LineEditor.ReadLine, unexpected behavior on cursor position and output.
Environment
version: 0.10.0
platform: windows-11x64
dotnet-sdk: 10.0.203
terminal: windows terminal with powershell-7.6.0, vscode terminal with powershell-7.6.0
Steps to reproduce
dotnet run test.csあいうえお), copy and paste is also OKExpected
rendered
あいうえおafter prompt and cursor is placed end of line, like followingActual
rendered as following
Additional Info
I tested on
AnsiConsole.AskAsync<string>in Spectre.Console-0.55.2, work as I expected