qmk / qmk_cli

A program to help users work with QMK
MIT License
142 stars 35 forks source link

[Feature Request] Catch `KeyboardInterrupt`s (CTRL-C) in the CLI #160

Open tomasr8 opened 1 year ago

tomasr8 commented 1 year ago

Feature Request Type

Description

Currently when you press CTRL-C while the CLI is running, you'll see the default Python behavior of showing the (sometimes very long) traceback. This is rarely going to be useful and just clutters the terminal output.

I suggest that we catch KeyboardInterrupts (can be done globally with a signal handler as well) and just exit w/o printing anything. or perhaps just a short message like Pressed CTRL-C or something like that. Thoughts?

fauxpark commented 1 year ago

This is probably an issue for https://github.com/clueboard/milc.