The escape code used for terminal titles works mostly but it doesnt set
the icon title as well [1], which is useful when minimised. This patch makes
the escape code set both window and icon title so the task bar updates
correctly in the gnome terminal (and probably others).

[1] http://rtfm.etla.org/xterm/ctlseq.html (see Operating System Controls)
---
 lib/sup/buffer.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
index d40a626..978e104 100644
--- a/lib/sup/buffer.rb
+++ b/lib/sup/buffer.rb
@@ -263,7 +263,7 @@ EOS
         get_status_and_title @focus_buf # must be called outside of the 
ncurses lock
       end
 
-    print "\033]2;#{title}\07" if title && @in_x
+    print "\033]0;#{title}\07" if title && @in_x
 
     Ncurses.mutex.lock unless opts[:sync] == false
 
-- 
1.5.4.1

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to