ref: 18a77886b77d8041bae737f92f96c571e0dea752
parent: cf86eab10da9d03f889ca1d393b4ccba0087cab9
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Feb 15 18:57:02 EST 2020
plan9: show "*" on every fourth tick
--- a/plan9.c
+++ b/plan9.c
@@ -419,7 +419,8 @@
i += runesprint(linebuf+i, "%-9s", s);
sprint(s, "%lldf", MAX(0, tick));
i += runesprint(linebuf+i, "%-8s", s);
- i += runesprint(linebuf+i, "%-8d", bpm);
+ sprint(s, "%d%c", bpm, (tick % 4) == 0 ? '*' : 0);
+ i += runesprint(linebuf+i, "%-8s", s);
sprint(s, "%ldms", labs(framedev));
i += runesprint(linebuf+i, "%-8s", s);
runestringn(screen, bot, color[Dfhigh], ZP, font, linebuf, i);