Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop all threads and write ANSI-Reset on Ctrl-C #2727

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Feb 1, 2024

  1. Stop all threads and write ANSI-Reset on Ctrl-C

    On Ctrl-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.
    th1000s committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    f29f001 View commit details
    Browse the repository at this point in the history
  2. winapi -> windows-sys

    th1000s committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    a671258 View commit details
    Browse the repository at this point in the history