Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop all threads and write ANSI-Reset on Ctrl-C
On Ctrt-C stop all threads currently writing to the terminal, ignoring whatever they have locked, and write the ANSI-Reset code directly to the terminal, then exit. This uses `pthread_kill()` or `SuspendThread()`, then `libc::write()` or `WriteConsoleA()` on Unix or Windows, respectively.
- Loading branch information