Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet commands modify the terminal's keypad/cursor behavior, but does not restore it on exit #15243

Open
Frassle opened this issue Jan 8, 2021 · 0 comments
Labels
Milestone

Comments

@Frassle
Copy link

Frassle commented Jan 8, 2021

Resurrection of microsoft/dotnet#472

If I run read and push the four arrow keys I get "^[[A^[[B^[[C^[[D". If I run dotnet build and then run read and push the arrow keys again I get "^[OA^[OB^[OC^[OD". I have to run tput rmkx to return my terminal to normal.

$ read
^[[A^[[C^[[B^[[D^C
$ dotnet build
Welcome to .NET 5.0!
---------------------
SDK Version: 5.0.101
.....

$ read
^[OA^[OC^[OB^[OD^C
$ tput rmkx
$ read
^[[A^[[C^[[B^[[D^C

Note that just dotnet alone doesn't seem to trigger it, but it seems any other invocation does (e.g. dotnet --help, dotnet build)

And the output of dotnet --info to show which dotnet was running:

$ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   5.0.101
 Commit:    d05174dc5a

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.04
 OS Platform: Linux
 RID:         ubuntu.18.04-x64
 Base Path:   /usr/share/dotnet/sdk/5.0.101/

Host (useful for support):
  Version: 5.0.1
  Commit:  b02e13abab

.NET SDKs installed:
  2.1.810 [/usr/share/dotnet/sdk]
  3.1.402 [/usr/share/dotnet/sdk]
  5.0.101 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.1.22 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.22 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.22 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants