about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-12-10 18:42:38 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-12-10 18:42:38 +0000
commit3b4009cd5321331a74b848a109323182173d7802 (patch)
tree59a96986d31f8c645b8e1cb6328805e78d10a1af
parente721ca5e67d37ffcc48d3dc5f5b2739df1f4412a (diff)
downloadzsh-3b4009cd5321331a74b848a109323182173d7802.tar.gz
zsh-3b4009cd5321331a74b848a109323182173d7802.tar.xz
zsh-3b4009cd5321331a74b848a109323182173d7802.zip
zsh-workers/8994
-rw-r--r--Doc/Zsh/zftpsys.yo15
-rw-r--r--Etc/FAQ.yo6
-rw-r--r--Functions/Zftp/zftp_chpwd2
3 files changed, 12 insertions, 11 deletions
diff --git a/Doc/Zsh/zftpsys.yo b/Doc/Zsh/zftpsys.yo
index ed68739b6..ed39554ef 100644
--- a/Doc/Zsh/zftpsys.yo
+++ b/Doc/Zsh/zftpsys.yo
@@ -97,10 +97,10 @@ is necessary, account var(account)).  If a necessary parameter is missing or
 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 @@ findex(zftp_chpwd, supplied version)
 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
diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo
index e91584cb6..5e4876328 100644
--- a/Etc/FAQ.yo
+++ b/Etc/FAQ.yo
@@ -49,7 +49,7 @@ description(\
 mydit(Archive-Name:) unix-faq/shell/zsh
 mydit(Last-Modified:) 1999/07/30
 mydit(Submitted-By:) email(pws@ibmth.df.unipi.it (Peter Stephenson))
-mydit(Version:) $Id: FAQ.yo,v 1.1.1.15 1999/11/30 06:12:09 akr Exp $
+mydit(Version:) $Id: FAQ.yo,v 1.1.1.16 1999/12/10 18:42:38 akr Exp $
 mydit(Posting-Frequency:) Monthly
 mydit(Copyright:) (C) P.W. Stephenson, 1995--1999 (see end of document)
 )
@@ -1122,7 +1122,7 @@ sect(How do I automatically display the directory in my xterm title bar?)
   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 @@ sect(How do I automatically display the directory in my xterm title bar?)
     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
   }
diff --git a/Functions/Zftp/zftp_chpwd b/Functions/Zftp/zftp_chpwd
index b7f8b7c7b..4c23e83bf 100644
--- a/Functions/Zftp/zftp_chpwd
+++ b/Functions/Zftp/zftp_chpwd
@@ -35,7 +35,7 @@ else
     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