2Shirt / WizardKit

MIT License
0 stars 0 forks source link

Prime95 countdown flickers #141

Closed 2Shirt closed 4 years ago

2Shirt commented 5 years ago

Instead of running a clear_screen(); print() loop try this instead:


[in run_mprime_test()]
with open('/tmp/prime95_countdown.status', 'w') as f:
  f.write(f'{YELLOW}If running too hot, press CTRL+c to abort the test{CLEAR}\n')
clear_screen()
countdown_proc = popen_program('tail -f /tmp/prime.status'.split())
[..]
for i in range(time_limit):
  [..]
  with open('/tmp/prime.status', 'a') as f:
    f.write(f'\r{_status_str}')
[..]
countdown_proc.kill()```
2Shirt commented 4 years ago

Addressed