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

Turn off LEDs on quit #3

Open
ryandesign opened this issue Mar 24, 2020 · 1 comment
Open

Turn off LEDs on quit #3

ryandesign opened this issue Mar 24, 2020 · 1 comment

Comments

@ryandesign
Copy link
Contributor

Thanks for this. It's really nice to see the LEDs working again after all these years.

When I Control-C hwmond to end it, the LEDs stay on. Might it be possible to turn them all off on quit instead? That way they wouldn't appear "stuck".

@mav2287
Copy link

mav2287 commented Apr 13, 2020

It has been a while since I worked on a C program for the terminal, but it looks like the information on how to do this can be found here. https://www.geeksforgeeks.org/write-a-c-program-that-doesnt-terminate-when-ctrlc-is-pressed/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants