Index: lib/sup/buffer.rb =================================================================== --- lib/sup/buffer.rb (revision 684) +++ lib/sup/buffer.rb (working copy) @@ -49,6 +49,27 @@ module Redwood class Buffer + HookManager.register "terminal-title-widget", < allmsgs, :spam => spammsgs, :new => newmsgs, :mode => mode.name, :title => title, :status => mode.status) || default_status_bar() + + write @height - 1, 0, "#{status}", :color => :status_color + + title = HookManager.run("terminal-title-widget", :total => allmsgs, :spam => spammsgs, :new => newmsgs, :mode => mode.name, :title => title, :status => mode.status) || default_terminal_title() + Redwood::log title + print "\033]2;#{title}\07" if title end def focus