diff options
author | Graham Northup <grissess@nexusg.org> | 2019-03-26 22:00:21 -0400 |
---|---|---|
committer | Graham Northup <grissess@nexusg.org> | 2019-03-26 22:00:21 -0400 |
commit | cf0b170b2cee2635905a087ea7ea9852512b5e98 (patch) | |
tree | 56a1054b18fdf2de504b7ee6227fddff35f0564a /broadcast.py | |
parent | ad94226b85044075fb8a6736438457da0a8b4f28 (diff) |
Added playtime display, amplitude exponents
Diffstat (limited to 'broadcast.py')
-rw-r--r-- | broadcast.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/broadcast.py b/broadcast.py index c4753da..7b9eb19 100644 --- a/broadcast.py +++ b/broadcast.py @@ -768,6 +768,11 @@ for fname in args: sys.stdout.write('\x1b[G\x1b[K[%s]' % ( ('#' * int((play_time() - BASETIME) * (columns - 2) / (ENDTIME * factor)) + SPINNERS[spin_phase]).ljust(columns - 2), )) + fmtime = '% 8.3f' % ((play_time() - BASETIME) / factor,) + sys.stdout.write('\x1b[%dG%s' % ( + 2 if play_time() - BASETIME > factor * ENDTIME / 2 else columns - len(fmtime) - 1, + fmtime, + )) sys.stdout.flush() spin_phase += 1 if spin_phase >= len(SPINNERS): |