diff options
Diffstat (limited to 'code/draw.rb')
-rw-r--r-- | code/draw.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/code/draw.rb b/code/draw.rb index 5a6380e7..693b941b 100644 --- a/code/draw.rb +++ b/code/draw.rb @@ -298,18 +298,19 @@ module Fm end def self.draw_bars() - @bars.each_with_index do |bar, ix| + l = CLI.lines + @bars.each do |bar| bar.update - l = -ix - 1 + l -= 1 puti l, bar.text[0..cols-1].ljust(cols) done = bar.done c = (done * cols).to_i unless done == 0 -# color_at l, 0, c, 0, 4 + attr_at(l, 0, c, *Color.bar_done) end unless done == cols -# color_at l, c, -1, 0, 6 + attr_at(l, c, -1, *Color.bar_undone) end end end |