From ccd1fe0ec9a3a05cf4f5016ca7732837dc51e33e Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 12 Jun 2009 19:15:03 +0200 Subject: improved behaviour at preview row when still generating --- code/cli.rb | 4 ++++ code/draw.rb | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'code') diff --git a/code/cli.rb b/code/cli.rb index ab962eb3..c982d0bd 100644 --- a/code/cli.rb +++ b/code/cli.rb @@ -54,6 +54,10 @@ module CLI @@colortable = [] end + def self.refresh + Ncurses.refresh + end + # Close the Interface def closei @@running = false diff --git a/code/draw.rb b/code/draw.rb index 67e3f7de..b07eb31c 100644 --- a/code/draw.rb +++ b/code/draw.rb @@ -42,9 +42,9 @@ module Fm right = left + wid if not d.read? - puti l, left, 'reading...'.ljust(wid+1) +# puti l, left, "" * (wid + 1) Scheduler << d - column_clear(c, 1) +# column_clear(c, 1) return elsif d.read? and d.empty? puti l, left, 'empty'.ljust(wid+1) @@ -280,6 +280,7 @@ module Fm movi(@pwd.pos + 1 - get_offset(@pwd, lines), @cur_y) end + CLI.refresh end def self.draw_bars() -- cgit 1.4.1-2-gfad0