Skip to content

How to exit a program? #22

@callumlocke

Description

@callumlocke

Some terminal programs (like file watchers) just run indefinitely until you do ctrl+c to send a SIGINT to exit the program.

How would I do this from nexpect? Is there a control character I could send through .sendline() to get the same effect as ctrl+c?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions