X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=windows.rb;h=5d195dd3edaa49be7d62d6ef5f7b6939a899ca3a;hb=HEAD;hp=96a45b94d6c81a3adaf8d6944ce36a45e7b669dc;hpb=332497b1a92f4257eea0c9257d041c8898c91c31;p=perso%2FImmae%2FProjets%2FRuby%2FMonitor.git diff --git a/windows.rb b/windows.rb index 96a45b9..5d195dd 100644 --- a/windows.rb +++ b/windows.rb @@ -52,9 +52,9 @@ end class List_Win - def initialize(sections) + def initialize(sections, size) @params = sections - @win = Ncurses::WINDOW.new(0, Ncurses.COLS()/4, 0, 0) + @win = Ncurses::WINDOW.new(0, size*Ncurses.COLS()/100, 0, 0) @win.border(*([0]*8)) @win.keypad(true) @win.timeout(1000)