Skip to content

Terminating with SIGINT/Ctrl+C can leave terminal SGR attributes set and "corrupt" the shell prompt #138

@craigbarnes

Description

@craigbarnes

If I press Ctrl+c while bfs is printing output (e.g. when operating on a very deep file tree by accident) sometimes my shell prompt turns bold/blue after bfs terminates:

1715086654

Running printf "\033[m" or tput sgr 0 restores it back to the normal appearance, but perhaps bfs could do this automatically with a SIGINT handler? It's not a big deal, since it's easy enough to reset manually and doesn't happen often. Just an idea really.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions