Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Console.ReadKey fails in MSYS' console mintty #49210

Open
claunia opened this issue Mar 5, 2021 · 1 comment
Open

System.Console.ReadKey fails in MSYS' console mintty #49210

claunia opened this issue Mar 5, 2021 · 1 comment
Labels
area-System.Console bug help wanted [up-for-grabs] Good issue for external contributors os-linux Linux OS (any supported distro)
Milestone

Comments

@claunia
Copy link

claunia commented Mar 5, 2021

When using System.Console.ReadKey under mintty, the MSYS console, it raises an exception.

Configuration

.NET Core 3.1
Windows 10 x64
MSYS

Regression?

No

Other information

Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.InvalidOperationException: Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read.
   at System.ConsolePal.ReadKey(Boolean intercept)
   at System.Console.ReadKey()

aaru-dps/Aaru#562

@dotnet-issue-labeler dotnet-issue-labeler bot added area-System.Console untriaged New issue has not been triaged by the area owner labels Mar 5, 2021
@ghost
Copy link

ghost commented Mar 5, 2021

Tagging subscribers to this area:
See info in area-owners.md if you want to be subscribed.

Issue Details

When using System.Console.ReadKey under mintty, the MSYS console, it raises an exception.

Configuration

.NET Core 3.1
Windows 10 x64
MSYS

Regression?

No

Other information

Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.InvalidOperationException: Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read.
   at System.ConsolePal.ReadKey(Boolean intercept)
   at System.Console.ReadKey()

aaru-dps/Aaru#562

Author: claunia
Assignees: -
Labels:

area-System.Console, untriaged

Milestone: -

@jeffhandley jeffhandley added this to the Future milestone Jul 13, 2021
@jeffhandley jeffhandley removed the untriaged New issue has not been triaged by the area owner label Jul 13, 2021
@adamsitnik adamsitnik added bug os-linux Linux OS (any supported distro) help wanted [up-for-grabs] Good issue for external contributors labels Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Console bug help wanted [up-for-grabs] Good issue for external contributors os-linux Linux OS (any supported distro)
Projects
None yet
Development

No branches or pull requests

3 participants