zsh-users
 help / color / mirror / code / Atom feed
* beyond zsh v2.3.1
@ 1996-08-26 20:34 Julio Garcia
  1996-08-26 22:23 ` Allan Poindexter
  1996-08-27  8:21 ` Swen Thuemmler
  0 siblings, 2 replies; 5+ messages in thread
From: Julio Garcia @ 1996-08-26 20:34 UTC (permalink / raw)
  To: zsh mailing list

Hello,

I am an unsophisticated user of zsh.  I have used for a couple of years.
I am currently running zsh v2.3.1.  I tried to upgrade to zsh-2.6-beta14
but I had a few problems and I wonder if someone out there can help me.

I am using HPUX 9.05:

o I got a compilation error.  I changed the file zle_tricky.c line 1684 from
    nameddirtab->filltable();
  to
    nameddirtab->filltable(0);

o I have been using a function that gets called by chpwd that looks
  like this:

                function print_banner {
                        print -n "\e]0;$1\a"
                }

  The purpose of it is to set the title of the xterm to the first parameter.
  With zsh 2.6 the title does not change and the string is simply output to
  stdout (tty maybe?).  I also tried to use a simple program that I have
  called xlabel which does the same thing as the print statement above.
  I had used xlabel with ksh in the past, but it realy wedged zsh when
  I use it in chpwd().  I had this problem with 2.5 as well.


Thanks for your time,

-- 
Julio Garcia - julio@fc.hp.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: beyond zsh v2.3.1
  1996-08-26 20:34 beyond zsh v2.3.1 Julio Garcia
@ 1996-08-26 22:23 ` Allan Poindexter
  1996-08-27  8:21 ` Swen Thuemmler
  1 sibling, 0 replies; 5+ messages in thread
From: Allan Poindexter @ 1996-08-26 22:23 UTC (permalink / raw)
  To: Julio Garcia; +Cc: zsh-users

 Julio> o I have been using a function that gets called by chpwd that looks
 Julio> like this:

 Julio>                 function print_banner { print -n "\e]0;$1\a" }

 Julio>   The purpose of it is to set the title of the xterm to the first
 Julio> parameter.  With zsh 2.6 the title does not change and the string is
 Julio> simply output to stdout (tty maybe?).  I also tried to use a simple
 Julio> program that I have called xlabel which does the same thing as the
 Julio> print statement above.  I had used xlabel with ksh in the past, but it
 Julio> realy wedged zsh when I use it in chpwd().  I had this problem with
 Julio> 2.5 as well.

I use the escape feature in the prompt to do this:

PROMPT='%{^[]2;%M:%~\a%}%l %T %h%#'
RPROMPT=' %m:%~'

I define the following so I can turn it on and off at will:

noactiveprompt() { PROMPT='%l %T %h%#' }
activeprompt() { PROMPT='%{^[]2;%M:%~\a%}%l %T %h%#' }
alias nap=noactiveprompt
alias ap=activeprompt


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: beyond zsh v2.3.1
  1996-08-26 20:34 beyond zsh v2.3.1 Julio Garcia
  1996-08-26 22:23 ` Allan Poindexter
@ 1996-08-27  8:21 ` Swen Thuemmler
  1996-08-27  8:42   ` Duncan Sargeant
       [not found]   ` <swen@uni-paderborn.de>
  1 sibling, 2 replies; 5+ messages in thread
From: Swen Thuemmler @ 1996-08-27  8:21 UTC (permalink / raw)
  To: Julio Garcia; +Cc: zsh mailing list

On Mon, 26 Aug 1996, Julio Garcia wrote:

> o I have been using a function that gets called by chpwd that looks
>   like this:
> 
>                 function print_banner {
>                         print -n "\e]0;$1\a"
>                 }

Shouldn't this be \e]2 instead? I have 
chpwd () {
        print -Pn "\e]2;${HOST}:%~ \a"
}
and this works.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: beyond zsh v2.3.1
  1996-08-27  8:21 ` Swen Thuemmler
@ 1996-08-27  8:42   ` Duncan Sargeant
       [not found]   ` <swen@uni-paderborn.de>
  1 sibling, 0 replies; 5+ messages in thread
From: Duncan Sargeant @ 1996-08-27  8:42 UTC (permalink / raw)
  To: Swen Thuemmler; +Cc: julio, zsh-users

> On Mon, 26 Aug 1996, Julio Garcia wrote:
> 
> > o I have been using a function that gets called by chpwd that looks
> >   like this:
> > 
> >                 function print_banner {
> >                         print -n "\e]0;$1\a"
> >                 }
> 
> Shouldn't this be \e]2 instead? I have 
> chpwd () {
>         print -Pn "\e]2;${HOST}:%~ \a"
> }
> and this works.
> 

I have the following at the top of my .zshrc :

if [[ $TERM = "xterm" ]] && [[ "`stty size`" != "8 57" ]] then
    export PROMPT="%{^[]2;%m:%~%%^G%}%B[%?:%!]%b%# "
else
  export PROMPT='%B%m%b:%~%# '
  export RPROMPT='[%?:%!]'
fi

the bit of interest is the ^[]2; ... \a which puts the enclosed text in the
title bar of an xterm or screen screen.

don't know about HPUX tho ...

Duncan Sargeant, http://www.ucc.gu.uwa.edu.au/~dunc/
 "You can pick your friends and you can pick your
   nose, but you can't pick your friend's nose."


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: beyond zsh v2.3.1
       [not found]   ` <swen@uni-paderborn.de>
@ 1996-08-27  9:41     ` Bart Schaefer
  0 siblings, 0 replies; 5+ messages in thread
From: Bart Schaefer @ 1996-08-27  9:41 UTC (permalink / raw)
  To: zsh-users

On Aug 27, 10:21am, Swen Thuemmler wrote:
} Subject: Re: beyond zsh v2.3.1
}
} On Mon, 26 Aug 1996, Julio Garcia wrote:
} 
} >                         print -n "\e]0;$1\a"
} 
} Shouldn't this be \e]2 instead? I have 
} 
}         print -Pn "\e]2;${HOST}:%~ \a"

ESC ] 0 changes the window name as well as the title, so the new title
will show up in xlswins and so on.  ESC ] 2 changes the title only.
Both should work, they do for me.

-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1996-08-27 10:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-26 20:34 beyond zsh v2.3.1 Julio Garcia
1996-08-26 22:23 ` Allan Poindexter
1996-08-27  8:21 ` Swen Thuemmler
1996-08-27  8:42   ` Duncan Sargeant
     [not found]   ` <swen@uni-paderborn.de>
1996-08-27  9:41     ` Bart Schaefer

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).