question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet run doesn't echo Console.ReadLine() as typed and doesn't show colours

See original GitHub issue

Steps 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):

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:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
svickcommented, Jun 8, 2016

Empty lines not being printed is dotnet/sdk#5568.

0reactions
jpsingletoncommented, Jun 13, 2016

⬆️ OS X 10.11.5

The released pkg is signed but the latest pkg is not.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found