You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unexpected ASCII control characters are inserted in output when running "dotnet run" for a console project.
To Reproduce
docker run --rm -it mcr.microsoft.com/dotnet/sdk:9.0 bash
mkdir hello
cd hello
dotnet new console
dotnet run
apt update && apt install less
dotnet run | less
expected result:
less shows "Hello, World!"
actual result:
less shows: "ESC]9;4;3;ESC\ESC]9;4;0;ESC\Hello, World!"
Further technical details
.NET SDK:
Version: 9.0.100
Commit: 59db016f11
Workload version: 9.0.100-manifests.3068a692
MSBuild version: 17.12.7+5b8665660
Runtime Environment:
OS Name: debian
OS Version: 12
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/9.0.100/
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9aa4
.NET SDKs installed:
9.0.100 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
The same characters are written when output is redirected to file
behavior is not reproducible with dotnet 8 sdk
same behavior can be observed on windows
with dotnet 9 sdk "dotnet restore" progress output can be observed, which was not observed with dotnet 8 sdk -> possible reason?
The text was updated successfully, but these errors were encountered:
Describe the bug
Unexpected ASCII control characters are inserted in output when running "dotnet run" for a console project.
To Reproduce
expected result:
less shows "Hello, World!"
actual result:
less shows: "ESC]9;4;3;ESC\ESC]9;4;0;ESC\Hello, World!"
Further technical details
The text was updated successfully, but these errors were encountered: