Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: tgetent on hpux11.0



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