dotnet run doesn't echo Console.ReadLine() as typed and doesn't show colours
See original GitHub issueSteps to reproduce
Run a console app that uses Console.ReadLine()
and changes Console.ForegroundColor
, with dotnet run
.
Expected behavior
Should behave the same as running via dotnet MyApp.dll
, echoing input as typed and showing colours.
Actual behavior
Doesn’t show console input until a newline is typed and all text is monochrome.
Tested on zsh and bash on OS X 10.11.5.
Related issues (couldn’t find anything exactly matching this problem):
- https://github.com/dotnet/cli/issues/2976
- https://github.com/dotnet/cli/issues/2777
- https://github.com/dotnet/cli/issues/2775
- https://github.com/dotnet/corefx/issues/8950
- https://github.com/dotnet/corefx/issues/8184
- https://github.com/dotnet/corefx/issues/8183
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview1-002702)
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
dotnet run doesn't echo Console.ReadLine() as typed and ...
Should behave the same as running via dotnet MyApp.dll , echoing input as typed and showing colours. Actual behavior. Doesn't show console input ......
Read more >Debug Console window cannot accept Console.ReadLine ...
The question is how and where to enter text for Console.ReadLine() to accept during debugging, if I open a new cmd.exe and do...
Read more >Tutorial: Get started with System.CommandLine
Run the dotnet build command, and then open a command prompt in the ... "Background color of text displayed on the console: default...
Read more >Building a C# Interactive shell in a browser with Blazor ...
In this post I wanted to show you how to write and embed a C# interactive shell (a REPL - read-evaluate-print-loop) in a...
Read more >Debug a .NET console application using Visual Studio Code
The breakpoint is located after a Console.ReadLine method call. The Debug Console doesn't accept terminal input for a running program.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Empty lines not being printed is dotnet/sdk#5568.
⬆️ OS X 10.11.5
The released pkg is signed but the latest pkg is not.