Unified · Split
| @@ -106,7 +106,7 @@ redraw(void) · 105 unmodified lines | |||
| 106 | t = bat < 0 || pread(bat, tmp, 4, 0) < 4 ? nil : strchr(tmp, ' '); | 106 | t = bat < 0 || pread(bat, tmp, 4, 0) < 4 ? nil : strchr(tmp, ' '); |
| 107 | if(t != nil){ | 107 | if(t != nil){ |
| 108 | *t = 0; | 108 | *t = 0; |
| 109 | snprint(bats, sizeof(bats), pos[0] == 'l' || pos[1] == 'l' ? " | %s%%" : "%s%% | ", tmp); | 109 | snprint(bats, sizeof(bats), pos[0] == 'l' || pos[1] == 'l' ? " │ %s%%" : "%s%% │ ", tmp); |
| 110 | }else{ | 110 | }else{ |
| 111 | bats[0] = 0; | 111 | bats[0] = 0; |
| 112 | } | 112 | } |
| @@ -125,7 +125,7 @@ redraw(void) · 12 unmodified lines | |||
| 125 | flushimage(display, 1); | 125 | flushimage(display, 1); |
| 126 | unlockdisplay(display); | 126 | unlockdisplay(display); |
| 127 | 127 | ||
| 128 | snprint(s, sizeof(s), "%s%τ", bats[0] ? "100% | " : "", tf); | 128 | snprint(s, sizeof(s), "%s%τ", bats[0] ? "100% │ " : "", tf); |
| 129 | width = stringwidth(f, s); | 129 | width = stringwidth(f, s); |
| 130 | place(); | 130 | place(); |
| 131 | } | 131 | } |