Skip to content

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

Closed

Description

@bagajjal

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

Activity

  1. Dotnet-GitSync-Bot commented on Nov 13, 2020

    @Dotnet-GitSync-Bot
    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.

  2. added
    untriaged
    on Nov 13, 2020
  3. eiriktsarpalis commented on Nov 13, 2020

    @eiriktsarpalis
    Member

    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.

  4. added and removed
    untriaged
    on Nov 13, 2020
  5. added this to the 6.0.0 milestone on Nov 13, 2020
  6. danmoseley commented on Nov 13, 2020

    @danmoseley
    Contributor

    Is this a regression from 3.1?

  7. eiriktsarpalis commented on Nov 13, 2020

    @eiriktsarpalis
    Member

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

  8. danmoseley commented on Nov 13, 2020

    @danmoseley
    Contributor

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

  9. modified the milestones: 6.0.0, 7.0.0 on Jul 26, 2021
  10. modified the milestones: 7.0.0, Future on Jul 9, 2022
  11. self-assigned this
    on Jul 11, 2022
  12. modified the milestones: Future, 7.0.0 on Jul 14, 2022
  13. ghost added
    in-pr
    on Jul 14, 2022
  14. ghost removed
    in-pr
    on Aug 1, 2022
  15. ghost locked as resolved and limited conversation to collaborators on Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions