Skip to content

Reset Cursor when Dialoguer is Interrupted #1109

Closed
@nixpulvis

Description

@nixpulvis

Running sqlx database drop and then killing the program with ctrl+c leaves me without a cursor.

If I understand correctly, it's the opinion of the dependecy's developers that this should be handled by users of the crate, see console-rs/dialoguer#92. This is presumable because composing library traps could lead to trouble if using various different crates. So I think the ideal solution would be to use whatever the same functionality dialoguer itself is using after the prompt is complete inside a SIGINT trap. Perhaps something like this: console-rs/dialoguer#22 (comment) with the above comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions