Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: marcus-sup@bar-coded.net (Marcus Williams)
Subject: [sup-talk] [PATCH] Fix for icon title in gnome terminal (possibly others)
Date: Wed, 05 Mar 2008 10:11:13 +0000	[thread overview]
Message-ID: <1204711708-sup-3638@tomsk> (raw)

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



             reply	other threads:[~2008-03-05 10:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-05 10:11 Marcus Williams [this message]
2008-03-26 16:11 ` William Morgan
2008-04-01 10:07   ` Marcus Williams
2008-04-01 15:03     ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1204711708-sup-3638@tomsk \
    --to=marcus-sup@bar-coded.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox