forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Console.ReadKey() distinguish between CR and LF inputs (dotnet#3…
…7491) * termios: disable CR/LF mapping flags * fix mapping logic for '\n' characters * only disable cr/lf conversions on Console.ReadKey paths * add comments * address feedback * address feedback * move character conversions to the managed layer * fix issue * add key chord manual tests and doc manual testing * ensure terminal is initialized for Console.OpenStandardInput * Enable ICRNL when reading from UnixConsoleStream * add a manual test for OpenStandardInput * remove CR to LF conversion for Console.ReadLine * rename argument * add CR-to-LF transformation to Console.ReadOrPeek * use ConditionalFact attribute in test * remove dead code
- Loading branch information
1 parent
f997ed7
commit a62bfcb
Showing
8 changed files
with
103 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# System.Console manual tests | ||
|
||
For verifying console functionality that cannot be run as fully automated. | ||
To run the suite, follow these steps: | ||
|
||
1. Build the CLR and libraries. | ||
2. Using a terminal, navigate to the current folder. | ||
3. Enable manual testing by defining the `MANUAL_TESTS` environment variable (e.g. on bash `export MANUAL_TESTS=true`). | ||
4. Run `dotnet test` and follow the instructions in the command prompt. |