Skip to content

Improve Unix Console.ReadLine by borrowing from PowerShell's ReadLineFromConsole #94860

Closed as not planned

Description

@tmds

On Unix, .NET uses its own Console.ReadLine implementation which is very minimalistic.

PowerShell has a more feature rich ReadLine implementation here: https://github.com/PowerShell/PowerShell/blame/5cd04f2377b624dedd17a85ff3f38a0343292477/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs#L1567.
It include things like: arrows keys, home, end, delete, ...

We can borrow some things from that to improve the UX of Console.ReadLine on Unix.

cc @dotnet/area-system-console @adamsitnik @stephentoub

Activity

  1. ghost added
    untriaged
    on Nov 16, 2023
  2. gfoidl commented on Nov 16, 2023

    @gfoidl
  3. changed the title [-]Improve Unix Console.WriteLine by borrowing from PowerShell's ReadLineFromConsole[/-] [+]Improve Unix Console.ReadLine by borrowing from PowerShell's ReadLineFromConsole[/+] on Nov 17, 2023
  4. adamsitnik commented on Nov 17, 2023

    @adamsitnik
    Member

    We would get #38051 fixed? That would be great! I am supportive of that idea.

  5. removed
    untriaged
    on Nov 17, 2023
  6. added this to the Future milestone on Nov 17, 2023
  7. added
    help wanted
    on Nov 17, 2023
  8. tmds commented on Nov 17, 2023

    @tmds
    MemberAuthor

    Yes, arrow keys are part of this.

    You can assign this to me.

  9. removed
    help wanted
    on Nov 17, 2023
  10. tmds commented on Nov 29, 2023

    @tmds
    MemberAuthor

    Closing in favor of #38051. See comment: #38051 (comment).

  11. locked and limited conversation to collaborators on Dec 30, 2023
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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions