From: William Morgan Date: Wed, 26 Mar 2008 16:10:17 +0000 (-0700) Subject: set icon title as well as window title when running under X X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=580b56e751e56e3d7cec197badbf18425e698112;p=sup set icon title as well as window title when running under X Based on a patch by Marcus Williams. --- diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index d40a626..dc0f001 100644 --- 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