lib/rbcurse/extras/bottomline.rb in rbcurse-1.2.0.pre vs lib/rbcurse/extras/bottomline.rb in rbcurse-1.2.0
- old
+ new
@@ -1465,10 +1465,10 @@
end
def display_text_interactive text, config={}
require 'rbcurse/rcommandwindow'
ht = config[:height] || 15
layout = { :height => ht, :width => Ncurses.COLS-1, :top => Ncurses.LINES-ht+1, :left => 0 }
- rc = CommandWindow.new nil, :layout => layout, :box => true
+ rc = CommandWindow.new nil, :layout => layout, :box => true, :title => config[:title]
w = rc.window
#rc.text "There was a quick brown fox who ran over the lazy dog and then went over the moon over and over again and again"
rc.display_interactive(text) { |l|
l.focussed_attrib = 'bold' # Ncurses::A_UNDERLINE
l.focussed_symbol = '>'