ref: 8ebcb9b38e8fc8a5a9b6d73adb0048870194730c
parent: 18a77886b77d8041bae737f92f96c571e0dea752
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Feb 15 19:20:12 EST 2020
plan9: rearrange info columns a bit, show paused mode with ~
--- a/plan9.c
+++ b/plan9.c
@@ -414,11 +414,11 @@
i = 0;
sprint(s, "%udx%ud", field.width, field.height);
- i += runesprint(linebuf, "%-13s", s);
+ i += runesprint(linebuf, "%-10s", s);
sprint(s, "%d/%d", gridw, gridh);
i += runesprint(linebuf+i, "%-9s", s);
- sprint(s, "%lldf", MAX(0, tick));
- i += runesprint(linebuf+i, "%-8s", s);
+ sprint(s, "%lldf%c", MAX(0, tick), pause ? '~' : 0);
+ i += runesprint(linebuf+i, "%-9s", s);
sprint(s, "%d%c", bpm, (tick % 4) == 0 ? '*' : 0);
i += runesprint(linebuf+i, "%-8s", s);
sprint(s, "%ldms", labs(framedev));
@@ -428,10 +428,10 @@
i = 0;
sprint(s, "%ud,%ud", curx, cury);
- i += runesprint(linebuf, "%-13s", s);
+ i += runesprint(linebuf, "%-10s", s);
sprint(s, "%d:%d", selw, selh);
i += runesprint(linebuf+i, "%-9s", s);
- i += runesprint(linebuf+i, "%-8s", modes[altdown ? Mslide : mode]);
+ i += runesprint(linebuf+i, "%-9s", modes[altdown ? Mslide : mode]);
i += runesprint(linebuf+i, "%s", filename[0] ? filename : "unnamed");
runestringn(screen, bot, color[Dfhigh], ZP, font, linebuf, i);