spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.
https://spectreconsole.net
MIT License
9.16k stars 470 forks source link

[Compatibility issues] - SelectionPrompt and MultiSectionPrompt are not work on ConEmu #548

Open SunBrook opened 2 years ago

SunBrook commented 2 years ago

Information

Describe the bug ConEmu display is normal, but I cannot up or down to select option. When I press enter button, i can only choice the first option. By the way, when i try to use to Microsoft's cmd, it's normal.


Please upvote :+1: this issue if you are interested in it.

patriksvensson commented 2 years ago

@SunBrook Why did you close this issue?

SunBrook commented 2 years ago

There are many terminal software on the market. I don't think it's necessary to adapt to each terminal, which will waste a lot of time. I hope you spend most of your time developing new functions and optimizing programs, so I close this issue

patriksvensson commented 2 years ago

I see. But let's keep the issue open. Thanks for reporting.

nils-a commented 2 years ago

@SunBrook Could you add some more info? I could not reproduce this behavior in either Command Prompt or PowerShell running in ConEmu.

For testing I used the Prompt-example.

SunBrook commented 2 years ago

@nils-a I'm sorry I won't have time until October 7. During this time, I have to accompany my family. When I come back, I will use your example to test and return detailed results.Please wait patiently. Thank you.

SunBrook commented 2 years ago

@nils-a I'm back. I used the Prompt-example, but it's not useful.

System: windows 10 IDE: VS 2019

up down

ConEmu's Settings ConEmu Settings

nils-a commented 2 years ago

I can confirm this behavior. Setting ConEmu as the default console as shown above (need to restart the machine, for VS to pick up on this), then running the example out of VS, VS starts a ConEmu and navigation in prompts is not possible.

However, I feel this is not a problem in ConEmu per se. Running the example without VS involved, the problem does not occur.

patriksvensson commented 2 years ago

We're using Console.ReadKey to detect pressed keys, so feels like this issue has to do with something further down the stack.

SunBrook commented 2 years ago

@nils-a @patriksvensson I compiled a console version of exe and tested it with comemu. It works normally. I think there may be some problems in using vs debugging