after import Ctrl-C is cached by this module and the python program exits
Hello, thank you for working on this project. It's working quiet well and also i love the overview of colors on the command line. However. After importing this project in my python script a Ctrl-C is cached and the program exits. I wonder why this is done by default as the main purpose of this project is a helper for color output on the terminal.
With following code i fix it in my project, but of course, i have to write it always in each script:
import signal
original_sigint_handler = signal.getsignal(signal.SIGINT)
from stringcolor import cs
signal.signal(signal.SIGINT, original_sigint_handler)
I think it's caused by this code: https://gitlab.com/shindagger/string-color/-/blob/master/stringcolor/main.py#L34
Can you remove it or only set it when invoked by terminal directly?
https://gitlab.com/shindagger/string-color/-/blob/master/stringcolor/main.py#L181
Thank you for looking at this (and maybe a quick fix