Console.Unix: fix terminal settings during Console.KeyAvailable (#42371)
authorTom Deseyn <tom.deseyn@gmail.com>
Thu, 17 Sep 2020 14:20:22 +0000 (16:20 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Sep 2020 14:20:22 +0000 (15:20 +0100)
commit1b491f603275a0d943d613da1e914502b9102e0f
tree4a0b87611db80405c36a4e1e2fc52d6d91629fde
parenta1f9226e7b7689aa153861b7bb5011e6f272ccc2
Console.Unix: fix terminal settings during Console.KeyAvailable (#42371)

* Console.Unix: fix terminal settings during Console.KeyAvailable

Arguments passed to configure the terminal are in the wrong order.
This causes Enter keys to be returned as ConsoleKey.J instead of
ConsoleKey.Enter.

* Add test
src/libraries/Native/Unix/System.Native/pal_console.c
src/libraries/System.Console/tests/ManualTests/ManualTests.cs