Skip to content

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

Open

Description

@claunia

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

Activity

  1. ghost added
    untriaged
    on Mar 5, 2021
  2. added this to the Future milestone on Jul 13, 2021
  3. removed
    untriaged
    on Jul 13, 2021
  4. added
    os-linux
    help wanted
    on Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Consolebughelp wantedos-linux

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions