JakeRoggenbuck / auto-clock-speed

A utility to check stats about your CPU, and auto regulate clock speeds to help with either performance or battery life.
https://autoclockspeed.org
MIT License
33 stars 9 forks source link

Maybe use `stty size` instead of ioctl #460

Open JakeRoggenbuck opened 1 year ago

JakeRoggenbuck commented 1 year ago

The idea is form here https://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window

JakeRoggenbuck commented 1 year ago

Rational for doing this is nix a pretty large library is only used for this and one other thing. If we switch it, we may be able to remove the dependency and some unsafe code.