zsh-workers
 help / color / mirror / code / Atom feed
* zsh - hpux 11i prompt does not work
@ 2003-03-19  4:31 Manish Ahluwalia
  2003-03-19 16:13 ` Bart Schaefer
  2003-03-20 12:09 ` Manish Ahluwalia
  0 siblings, 2 replies; 4+ messages in thread
From: Manish Ahluwalia @ 2003-03-19  4:31 UTC (permalink / raw)
  To: zsh-workers; +Cc: manish

Hi,

I use zsh on hpux. I have noticed a problem with zsh and hpux version
11i. I have tried zsh versions 3.0.5 and 4.0.4 with the same results.
Both versions display the problem mentioned below on hpux 11i and both
don't have the problem on hpux 10.20.

I use the dtterm terminal. The same behavior is seen with xterm. What
happens is that I set my PS1 to do a couple of things:
a) Print the hostname, username and pwd on the title bar of the
terminal.
b) Change the color to something other than the default (for dtterm, I
prefer yellow in the example below). Print pwd, last exit value, and
change the color back to default.

However, I notice that most of the prompt settings don't take effect.
Here is a cut and paste from my dtterm window:
 echo $PS1 | xd -c
0000000  %  { 1b  ]  0  ;  %  n  @  %  M 07  %  }  %  {
0000010 1b  [  1  ;  3  3  m  %  }  %  3  ~  -  %  ?  %
0000020  #  %  { 1b  [  m  %  }    \n
000002a
 echo $TERM
dtterm
 pwd
/home/manish

(The terminal window title does not change, it always displays the
default `Terminal').

As you can see, my PS1 is set up to do a bunch of things. Nothing of it
gets printed as part of the prompt. there is no prompt string at all.

I have also noticed that if I change to a directory that has a long name
(i.e. the prompt string expansion becomes very big), then the prompt
does display a portion of itself:

 cd /home/manish/work/hp/tests/MAS/Performance/ 
/MAS/Performance-0% 

which leads me to think that somehow only the last few characters of the
expansion of the prompt are being printed by zsh. Also, if I do a:
/MAS/Performance-0% print -P $PS1
tests/MAS/Performance-0% 
/MAS/Performance-0% 

The line printed by `print -P' (tests/MAS/Performance-0%) is in yellow
as PS1 wanted it to be. Also, the print -P causes the title bar to
change to `manish@tsx2' (manish is my login name , tsx2 is my hostname)
also as PS1 dictates.

Any suggestions as to what could be going wrong / what I could do to
investigate further / what information I should provide to help you
figure what is going on?

Thanks.

-- Manish
____________________________________________________________________
If it weren't for C, we'd be programming in BASI, PASAL, and OBOL.


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

* Re: zsh - hpux 11i prompt does not work
  2003-03-19  4:31 zsh - hpux 11i prompt does not work Manish Ahluwalia
@ 2003-03-19 16:13 ` Bart Schaefer
  2003-03-20 12:09 ` Manish Ahluwalia
  1 sibling, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2003-03-19 16:13 UTC (permalink / raw)
  To: zsh-workers

On Mar 18,  8:31pm, Manish Ahluwalia wrote:
} 
} I use zsh on hpux. I have noticed a problem with zsh and hpux version
} 11i. I have tried zsh versions 3.0.5 and 4.0.4 with the same results.

Both this and the backspace problem are due to the HP-UX curses libraries.
The latest Etc/MACHINES file says this:

          Some of the special keys on the keyboard (backspace, delete)
          have been found to stop functioning.  One suggested fix is
          to alter the way the curses library is linked in the Makefile.
          Replacing `-lcurses' with `-lHcurses -lcurses' in the libraries
          is reported to fix.  An attempt to fix this in configure
          is apparently ineffective; more information would be appreciated
          as the maintainers do not have access to an HP-UX system.

The "apparently ineffective" configure patch (actually for the file
zshconfig.ac) is:

--- branch/zshconfig.ac      Wed Mar 19 07:51:26 2003
+++ current/zshconfig.ac     Sat Mar 15 09:29:15 2003
@@ -556,6 +563,7 @@
 
 dnl Prefer BSD termcap library to SysV curses library, except on certain
 dnl SYSV-derived systems.
+dnl On HPUX, Hcurses is reported to work better than curses.
 AC_ARG_WITH(curses-terminfo,
 [  --with-curses-terminfo     use terminfo support from curses library],
 [if test x$withval = xyes; then
@@ -566,7 +574,7 @@
 fi],
 [case "$host_os" in
   hpux10.*|hpux11.*|solaris*)
-      termcap_curses_order="curses ncurses termcap" ;;
+      termcap_curses_order="Hcurses curses ncurses termcap" ;;
   *)             termcap_curses_order="termcap curses ncurses" ;;
 esac])dnl
 


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

* Re: zsh - hpux 11i prompt does not work
  2003-03-19  4:31 zsh - hpux 11i prompt does not work Manish Ahluwalia
  2003-03-19 16:13 ` Bart Schaefer
@ 2003-03-20 12:09 ` Manish Ahluwalia
  2003-03-20 12:35   ` Manish Ahluwalia
  1 sibling, 1 reply; 4+ messages in thread
From: Manish Ahluwalia @ 2003-03-20 12:09 UTC (permalink / raw)
  To: schaefer; +Cc: zsh-workers, manish

Bart Schaefer wrote:
> 
> On Mar 18,  8:31pm, Manish Ahluwalia wrote:
> }
> } I use zsh on hpux. I have noticed a problem with zsh and hpux version
> } 11i. I have tried zsh versions 3.0.5 and 4.0.4 with the same results.
> 
> Both this and the backspace problem are due to the HP-UX curses
> libraries.
> The latest Etc/MACHINES file says this:
> 
>           Some of the special keys on the keyboard (backspace, delete)
>           have been found to stop functioning.  One suggested fix is
>           to alter the way the curses library is linked in the Makefile.
>           Replacing `-lcurses' with `-lHcurses -lcurses' in the
> libraries
>           is reported to fix.  An attempt to fix this in configure
>           is apparently ineffective; more information would be
> appreciated
>           as the maintainers do not have access to an HP-UX system.

Thanks a lot. I didn't see this section in my Etc/MACHINES (4.0.6), but
I tried the suggestion anyway, and it works!

I did not try the configure patch given below, I modified the generated
Makefile.

Is there someway I can help you guys figure out a fix for this that
works (say by trying out the patch?).

Please cc your reply to me as I am not a member of the zsh-workers list.

> 
> The "apparently ineffective" configure patch (actually for the file
> zshconfig.ac) is:
> 
> --- branch/zshconfig.ac      Wed Mar 19 07:51:26 2003
> +++ current/zshconfig.ac     Sat Mar 15 09:29:15 2003
> @@ -556,6 +563,7 @@
> 
>  dnl Prefer BSD termcap library to SysV curses library, except on
> certain
>  dnl SYSV-derived systems.
> +dnl On HPUX, Hcurses is reported to work better than curses.
>  AC_ARG_WITH(curses-terminfo,
>  [  --with-curses-terminfo     use terminfo support from curses
> library],
>  [if test x$withval = xyes; then
> @@ -566,7 +574,7 @@
>  fi],
>  [case "$host_os" in
>    hpux10.*|hpux11.*|solaris*)
> -      termcap_curses_order="curses ncurses termcap" ;;
> +      termcap_curses_order="Hcurses curses ncurses termcap" ;;
>    *)             termcap_curses_order="termcap curses ncurses" ;;
>  esac])dnl
> 
> 
> --
> Bart Schaefer                                 Brass Lantern Enterprises
> http://www.well.com/user/barts              http://www.brasslantern.com
> 
> Zsh: http://www.zsh.org | PHPerl Project:
> http://phperl.sourceforge.net

-- Manish
____________________________________________________________________
Cliches are a dime a dozen -- avoid them like the plague.


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

* Re: zsh - hpux 11i prompt does not work
  2003-03-20 12:09 ` Manish Ahluwalia
@ 2003-03-20 12:35   ` Manish Ahluwalia
  0 siblings, 0 replies; 4+ messages in thread
From: Manish Ahluwalia @ 2003-03-20 12:35 UTC (permalink / raw)
  To: schaefer, zsh-workers, manish

Manish Ahluwalia wrote:
> 
> Bart Schaefer wrote:
<snip>
> >
> >           Some of the special keys on the keyboard (backspace, delete)
> >           have been found to stop functioning.  One suggested fix is
> >           to alter the way the curses library is linked in the Makefile.
> >           Replacing `-lcurses' with `-lHcurses -lcurses' in the
> > libraries
> >           is reported to fix.  An attempt to fix this in configure
> >           is apparently ineffective; more information would be
> > appreciated
> >           as the maintainers do not have access to an HP-UX system.
> 
> Thanks a lot. I didn't see this section in my Etc/MACHINES (4.0.6), but
> I tried the suggestion anyway, and it works!
> 
> I did not try the configure patch given below, I modified the generated
> Makefile.
> 
> Is there someway I can help you guys figure out a fix for this that
> works (say by trying out the patch?).
> 
> Please cc your reply to me as I am not a member of the zsh-workers list.
> 
> >
> > The "apparently ineffective" configure patch (actually for the file
> > zshconfig.ac) is:
<snip>

I tried the patch, and got:

% ./Util/preconfig 
cd . && ./.preconfig
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_CYGWIN
***BUG in Autoconf--please report*** AC_EXEEXT
***BUG in Autoconf--please report*** AC_SEARCH_LIBS
***BUG in Autoconf--please report*** AC_SEARCH_LIBS
***BUG in Autoconf--please report*** AC_SEARCH_LIBS
./Util/preconfig: ./.preconfig failed (status 1)

-- Manish
____________________________________________________________________
Always and never are two words you must always remember to never use.


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

end of thread, other threads:[~2003-03-20 12:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-19  4:31 zsh - hpux 11i prompt does not work Manish Ahluwalia
2003-03-19 16:13 ` Bart Schaefer
2003-03-20 12:09 ` Manish Ahluwalia
2003-03-20 12:35   ` Manish Ahluwalia

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