Information
- OS: Linux
- Version: 0.55.2
- Terminal: xterm
Describe the bug
Test (ㅎ): System.ArgumentOutOfRangeException: Console key values must be between 0 and 255 inclusive. (Parameter 'key')
at System.ConsoleKeyInfo..ctor(Char keyChar, ConsoleKey key, Boolean shift, Boolean alt, Boolean control)
at Spectre.Console.AnsiConsoleExtensions.ReadLine(IAnsiConsole console, Nullable`1 style, Boolean secret, Nullable`1 mask, IEnumerable`1 items, CancellationToken cancellationToken, String initialInput) in /_/src/Spectre.Console/Extensions/AnsiConsoleExtensions.Input.cs:line 24
at Spectre.Console.TextPrompt`1.<>c__DisplayClass71_0.<<ShowAsync>b__0>d.MoveNext() in /_/src/Spectre.Console/Prompts/TextPrompt.cs:line 145
--- End of stack trace from previous location ---
at Spectre.Console.DefaultExclusivityMode.RunAsync[T](Func`1 func) in /_/src/Spectre.Console/Internal/DefaultExclusivityMode.cs:line 40
at Spectre.Console.TextPrompt`1.ShowAsync(IAnsiConsole console, CancellationToken cancellationToken) in /_/src/Spectre.Console/Prompts/TextPrompt.cs:line 131
at Spectre.Console.TextPrompt`1.Show(IAnsiConsole console) in /_/src/Spectre.Console/Prompts/TextPrompt.cs:line 123
at Spectre.Console.AnsiConsole.Prompt[T](IPrompt`1 prompt) in /_/src/Spectre.Console/AnsiConsole.Prompt.cs:line 18
To Reproduce
Here is the minimal example to reproduce the issue (F#):
#r "nuget: Spectre.Console"
open Spectre.Console
let prompt =
(TextPrompt<string> "Test")
.EditableDefaultValue(true)
.DefaultValue("ㅎ")
AnsiConsole.Prompt prompt
- Save the code above to a file, e.g.
test.fsx.
- Run the script:
dotnet fsi test.fsx.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Please upvote 👍 this issue if you are interested in it.
Information
Describe the bug
To Reproduce
Here is the minimal example to reproduce the issue (F#):
test.fsx.dotnet fsi test.fsx.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Please upvote 👍 this issue if you are interested in it.