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

.NET 5 fails to read the HOME key on ubuntu16.04 #44621

Closed
Tracked by #64487
bagajjal opened this issue Nov 13, 2020 · 6 comments · Fixed by #72193
Closed
Tracked by #64487

.NET 5 fails to read the HOME key on ubuntu16.04 #44621

bagajjal opened this issue Nov 13, 2020 · 6 comments · Fixed by #72193
Assignees
Milestone

Comments

@bagajjal
Copy link

bagajjal commented Nov 13, 2020

VTSequence for Home is ^[[1~.
bash is able to recognize this VTSequence. .NET fails to recognize the VTSequence.
TERM used is xterm.

I haven't tried the older versions of .NET. But I guess it exists on the older .NET versions as this is a fundamental issue.

Below screenshot captures all the details

image

@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Nov 13, 2020
@ghost
Copy link

ghost commented Nov 13, 2020

Tagging subscribers to this area: @eiriktsarpalis, @jeffhandley
See info in area-owners.md if you want to be subscribed.


Issue meta data
Issue content:
VTSequence for Home is ^[[1~.

bash is able to recognize this VTSequence. .NET fails to recognize the VTSequence.
TERM used is xterm.

I haven't tried the older versions of .NET. But I guess it exists on the older .NET versions as this is a fundamental issue.

Below screenshot captures all the details

image

</td>
Issue author: bagajjal
Assignees: -
Labels:
`area-System.Console`, `untriaged`

</td>
Milestone: -

@eiriktsarpalis
Copy link
Member

eiriktsarpalis commented Nov 13, 2020

I'm able to reproduce using PuTTY. Seeing the same issue with function keys F1-F4 (^[[11~ - ^[[14~), however F5-F12 (^[[15~ - ^[[24~) are mapped correctly. The Insert (^[[2~) and Delete (^[[3~) keys are also mapped correctly.

Note that other terminal emulators I tested (Windows terminal, xterm, gnome terminal) all map the Home key to ^[OH which is interpreted correctly by Console.ReadKey(). Same is true for function keys.

As a side note, it looks like Ctrl+Home is broken in all terminals that I tested. Related to #802.

@eiriktsarpalis eiriktsarpalis added bug and removed untriaged New issue has not been triaged by the area owner labels Nov 13, 2020
@eiriktsarpalis eiriktsarpalis added this to the 6.0.0 milestone Nov 13, 2020
@danmoseley
Copy link
Member

Is this a regression from 3.1?

@eiriktsarpalis
Copy link
Member

I don't believe it is, the same behaviour reproduces in 3.1 as well.

@danmoseley
Copy link
Member

OK, thanks just look on the lookout for regressions now we shipped (I'm adding the regression from last release label)

@adamsitnik adamsitnik modified the milestones: 6.0.0, 7.0.0 Jul 26, 2021
@jeffhandley jeffhandley modified the milestones: 7.0.0, Future Jul 9, 2022
@adamsitnik adamsitnik self-assigned this Jul 11, 2022
@adamsitnik adamsitnik modified the milestones: Future, 7.0.0 Jul 14, 2022
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jul 14, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Aug 1, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Aug 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants