From 580b56e751e56e3d7cec197badbf18425e698112 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Wed, 26 Mar 2008 09:10:17 -0700 Subject: [PATCH] set icon title as well as window title when running under X Based on a patch by Marcus Williams. --- lib/sup/buffer.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.45.2