5 ms·
From time to time I still miss turbo button and a (functioning) pause key. On DOS you could pause execution to inspect output... I guess with multiprocessing it
by Drdrdrq 8y ago
From time to time I still miss turbo button and a (functioning) pause key. On DOS you could pause execution to inspect output... I guess with multiprocessing it became more difficult to implement this...
- moviuro 8y agopkill -STOP "$(xprop _NET_WM_PID)" pkill -CONT "$(xprop _NET_WM_PID)" This might have some unintended consequences though (file locks, clock drift between running program and your quartz...). Regarding turbo, I'm pretty sure a shell script could set the CPU's speed governor to "conservative" at the press of a button.
- Drdrdrq 8y agoThanks, it's not quite the same though. Pause key was much more convenient, and worked on every system. Thanks nevertheless!
- moviuro 8y agoAlso, for terminals that support it: `Ctrl+S` to pause the display only (the command continues to run) and `Ctrl+Q` to unpause. Still not perfect... but it could help sometimes.
- ars 8y agoYou can also use the cpulimit program to do that. https://github.com/opsengine/cpulimit https://github.com/opsengine/cpulimit
- nhaehnle 8y agoCtrl+S does this in most terminal emulators (use Ctrl+Q to resume).