-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
rg doesn't reset terminal color when interrupted #119
Copy link
Copy link
Closed
Labels
bugA bug.A bug.
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugA bug.A bug.