commit 580b56e751e56e3d7cec197badbf18425e698112
parent 3951b2e71b5316dcd4063e71d849aea2c3c1f2f1
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Wed, 26 Mar 2008 09:10:17 -0700
set icon title as well as window title when running under X
Based on a patch by Marcus Williams.
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
@@ -263,7 +263,11 @@ 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
+ if title && @in_x
+ ## http://rtfm.etla.org/xterm/ctlseq.html (see Operating System Controls)
+ print "\033]2;#{title}\07" # window
+ print "\033]0;#{title}\07" # icon title
+ end
Ncurses.mutex.lock unless opts[:sync] == false