Skip to content

Need Ctrl-C to interrupt input #607

Closed

Description

No description provided.

Activity

  1. palladia commented on Mar 2, 2016

    @palladia
    ContributorAuthor

    On Windows, Ctrl-C is also used to abort user input. This is especially needed for multi-line input, as there' s no other way to abort.

  2. palladia commented on Mar 2, 2016

    @palladia
    ContributorAuthor

    I've investigated this a bit, and since current CoreFx does not support Console.TreatCAsInput, this may be hard to implement.

  3. palladia commented on Mar 2, 2016

    @palladia
    ContributorAuthor

    Sorry, that was Console.TreatControlCAsInput...

  4. andyleejordan commented on Mar 2, 2016

    @andyleejordan
    Member

    What do you mean by interrupt input? We have a handler for Ctrl-C registered in the host to stop a running cmdlet.

  5. added
    Usability(LEGACY) Helps filter issues that might be higher priority because they directly affect usability
    on Mar 2, 2016
  6. palladia commented on Mar 2, 2016

    @palladia
    ContributorAuthor

    While CTRL-C interrupts running powershell commands, it does not abort user inputs. For example, if you open Windows PowerShell, type something at command line, and then Ctrl-C, it aborts what you have typed so far, and gives you a new prompt.

    We don't do that. We need this feature to interrupt a multi-line command.

  7. andyleejordan commented on Mar 2, 2016

    @andyleejordan
    Member

    Could we just do this with our escape mapping? Or in our Ctrl-C handler?

  8. palladia commented on Mar 2, 2016

    @palladia
    ContributorAuthor

    Still playing around with it. I think our Ctrl-C handler may be flawed.

  9. vors commented on Mar 2, 2016

    @vors
    Collaborator

    I also complained about the same in #421

    I never used Esc for this and it doesn't work in bash and fish shell.
    It should be Ctrl+C instead of Esc.

  10. andyleejordan commented on Mar 2, 2016

    @andyleejordan
    Member

    Or the Ctrl-K I have implemented but disabled by request.

  11. palladia commented on Mar 2, 2016

    @palladia
    ContributorAuthor

    Fixed with #613

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Usability(LEGACY) Helps filter issues that might be higher priority because they directly affect usability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions