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()```
Instead of running a clear_screen(); print() loop try this instead: