zsh-workers
 help / color / mirror / code / Atom feed
* [Fwd: [problem] HP-UX tgetent()]
@ 2002-09-03 19:56 pws
  2002-09-04 14:46 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: pws @ 2002-09-03 19:56 UTC (permalink / raw)
  To: zsh-workers

OK, here goes with freeserve's web interface from work...
Sorry, the `>'s were added automatically.

> 
> From: WATANABE Tetsuya <tetsu@jpn.hp.com>
> Date: Tue 03/Sep/2002 06:28 GMT
> To: coordinator@zsh.org
> Subject: [problem] HP-UX tgetent()
> 
> Hi
> 
> HP-UX's tgetent() is return 0 or -1
> 
> ------------------------------
>  tgetent(3X)                                                     tgetent(3X)
>                                ENHANCED CURSES
> 
>  NAME
>       tgetent, tgetflag, tgetnum, tgetstr, tgoto - termcap database
>       emulation (TO BE WITHDRAWN)
> 
>  SYNOPSIS
>       #include <term.h>
> 
>       int tgetent(char *bp, const char *name);
> 
>  RETURN VALUE
>       Upon successful completion, functions that return an integer will
>       return 0K (0).  Otherwise, they return ERR (-1).
> 
>       Functions that return pointers will return a null pointer on error.
> ------------------------------
> 
> please this PATCH
> 
> ------------------------------
> --- init.c.org	Fri Aug  9 22:30:22 2002
> +++ init.c	Tue Sep  3 15:14:39 2002
> @@ -537,8 +537,12 @@
>      /* If possible, we let tgetent allocate its own termcap buffer */
>      if (tgetent(NULL, term) != 1) {
>  #else
> +#ifdef __hpux
> +    if (tgetent(termbuf, term) == -1) {
> +#else
>      if (tgetent(termbuf, term) != 1) {
>  #endif
> +#endif
>  
>  	if (isset(INTERACTIVE))
>  	    zerr("can't find terminal definition for %s", term, 0);
> ------------------------------
> 
> thanks!
> 
> -- 
> WATANABE Tetsuya
>  e-mail: Tetsuya.WATANABE@hp.com
>          tetsu@jpn.hp.com
> 
> 

_______________________________________________________________________
Freeserve AnyTime, only £13.99 per month with one month's FREE trial!
For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890



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

end of thread, other threads:[~2002-09-04 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-03 19:56 [Fwd: [problem] HP-UX tgetent()] pws
2002-09-04 14:46 ` 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).