Skip to content

rg doesn't reset terminal color when interrupted #119

@lambda

Description

@lambda

I was grepping a large log file, and accidentally wrote a regex that matched a very large number of lines. After waiting for a minute of it just printing out lines to stdout, I killed rg with Ctrl-C. However, that left the time output and my shell prompt blue since apparently I'd interrupted it in the process of printing out a line number.

rg should probably catch SIGINT and reset the terminal color (or any other terminal changes) before exiting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions