Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: tgetent on hpux11.0
- X-seq: zsh-workers 16938
- From: Geoff Wing <gcw@xxxxxxx>
- To: David Rhodus <david@xxxxxxxxx>
- Subject: Re: tgetent on hpux11.0
- Date: Fri, 5 Apr 2002 12:48:50 +1000
- Cc: Zsh Hackers <zsh-workers@xxxxxxxxxx>
- In-reply-to: <3CAC7167.791654BA@xxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: PrimeNet Computer Consultancy
- References: <3CAC7167.791654BA@xxxxxxxxx>
David Rhodus <david@xxxxxxxxx> typed:
:The tgetent function was erroring out and not loading and termcaps.
:Here is some code I hacked up to get zsh working right on hpux11.0
:Is this a know bug is some versions of hpux?
Thanks for the file. In future, please send a diff to make it clear
to people what you've changed and to apply any fixes. Also, please
tell us which version of zsh you're using. It seems you're using
zsh-4.0.4. I've put a unified diff from 4.0.4 and your file below.
To zsh-workers: Bart proposed a fix for this in February (workers/16613)
Is this on hold awaiting indication of sufficient testing/feedback?
--- Src/init.c Tue Oct 23 17:30:51 2001
+++ /tmp/z1 Fri Apr 5 12:41:19 2002
@@ -35,6 +35,7 @@
#include "init.pro"
#include "version.h"
+#include <curses.h>
/**/
int noexitct = 0;
@@ -535,9 +536,9 @@
#ifdef TGETENT_ACCEPTS_NULL
/* If possible, we let tgetent allocate its own termcap buffer */
- if (tgetent(NULL, term) != 1) {
+ if (tgetent(NULL, term) != OK) {
#else
- if (tgetent(termbuf, term) != 1) {
+ if (tgetent(termbuf, term) != OK) {
#endif
if (isset(INTERACTIVE))
Regards,
--
Geoff Wing : <gcw@xxxxxxxxx>
Rxvt Stuff : <gcw@xxxxxxxx>
Zsh Stuff : <gcw@xxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author