zsh-workers
 help / color / mirror / code / Atom feed
From: Alexandre Duret-Lutz <alexandre.duret@greyc.ismra.fr>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: zftp xterm titlebar
Date: 10 Dec 1999 19:38:43 +0000	[thread overview]
Message-ID: <7dpuweio1o.fsf@antares.l2i> (raw)
In-Reply-To: Clint Adams's message of "Fri, 10 Dec 1999 11:06:07 -0500"


May I propose the following patch that also take `rxvt', `Eterm', 
and `dtterm' (from Sun CDE) into account ?  Are there other 
xterm-compatible terminals emulators around ?

(the following should be applied after Clint's 8993)

--- Functions/Zftp/zftp_chpwd~	Fri Dec 10 18:42:49 1999
+++ Functions/Zftp/zftp_chpwd	Fri Dec 10 18:48:10 1999
@@ -35,7 +35,7 @@
     case $TERM in
       sun-cmd) print -n -P "\033]l$str\033\\"
 	       ;;
-      *xterm*) print -n -P "\033]2;$str\a"
+      *xterm*|rxvt|dtterm|Eterm) print -n -P "\033]2;$str\a"
 	     ;;
     esac
   fi
--- Etc/FAQ.yo~	Fri Dec 10 18:35:03 1999
+++ Etc/FAQ.yo	Fri Dec 10 18:42:00 1999
@@ -1122,7 +1122,7 @@
   You should use the special function mytt(chpwd), which is called when
   the directory changes.  The following checks that standard output is
   a terminal, then puts the directory in the title bar if the terminal
-  is an tt(xterm) or a tt(sun-cmd).
+  is compatible with tt(xterm) or is a tt(sun-cmd).
   
   verb(
   chpwd() {
@@ -1130,7 +1130,7 @@
     case $TERM in
       sun-cmd+CHAR(41) print -Pn "\e]l%~\e\\"
         ;;
-      xterm+CHAR(41) print -Pn "\e]2;%~\a"
+      *xterm*|rxvt|dtterm|Eterm+CHAR(41) print -Pn "\e]2;%~\a"
         ;;
     esac
   }
--- Doc/Zsh/zftpsys.yo~	Sun Nov 28 17:42:27 1999
+++ Doc/Zsh/zftpsys.yo	Fri Dec 10 19:02:23 1999
@@ -97,10 +97,10 @@
 given as `tt(?)' it will be prompted for.  If var(host) is not present, use
 a previously stored set of parameters.
 
-If the command was successful, and the terminal is an tt(xterm), a summary
-will appear in the title bar, giving the local tt(host:directory) and the
-remote tt(host:directory); this is handled by the function tt(zftp_chpwd),
-described below.
+If the command was successful, and the terminal is compatible with
+tt(xterm) or is tt(sun-cmd), a summary will appear in the title bar,
+giving the local tt(host:directory) and the remote tt(host:directory);
+this is handled by the function tt(zftp_chpwd), described below.
 
 Normally, the var(host), var(user) and var(password) are internally
 recorded for later re-opening, either by a tt(zfopen) with no arguments, or
@@ -466,9 +466,10 @@
 item(tt(zftp_chpwd))(
 This function is called every time a connection is opened, or closed, or
 the remote directory changes.  This version alters the title bar of an
-tt(xterm) or tt(sun-cmd) terminal emulator to reflect the local and remote
-hostnames and current directories.  It works best when combined with the
-function tt(chpwd).  In particular, a function of the form
+tt(xterm) compatible or tt(sun-cmd) terminal emulator to reflect the 
+local and remote hostnames and current directories.  It works best when
+combined with the function tt(chpwd).  In particular, a function of 
+the form
 
 example(chpwd() {
   if [[ -n $ZFTP_USER ]]; then

-- 
Alexandre Duret-Lutz


  reply	other threads:[~1999-12-10 18:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-10 16:06 Clint Adams
1999-12-10 19:38 ` Alexandre Duret-Lutz [this message]
1999-12-12 10:44   ` Andrej Borsenkow
1999-12-13 10:13     ` Alexandre Duret-Lutz
1999-12-13 12:08       ` Andrej Borsenkow
1999-12-14 11:15         ` Oliver Kiddle
1999-12-23 11:50   ` Alexandre Duret-Lutz
1999-12-12 11:51 ` Andrej Borsenkow
1999-12-12 23:02   ` Bart Schaefer

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=7dpuweio1o.fsf@antares.l2i \
    --to=alexandre.duret@greyc.ismra.fr \
    --cc=zsh-workers@sunsite.auc.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).