Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[Fwd: [problem] HP-UX tgetent()]
- X-seq: zsh-workers 17613
- From: <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: [Fwd: [problem] HP-UX tgetent()]
- Date: Tue, 3 Sep 2002 19:56:33 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
OK, here goes with freeserve's web interface from work...
Sorry, the `>'s were added automatically.
>
> From: WATANABE Tetsuya <tetsu@xxxxxxxxxx>
> Date: Tue 03/Sep/2002 06:28 GMT
> To: coordinator@xxxxxxx
> 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@xxxxxx
> tetsu@xxxxxxxxxx
>
>
_______________________________________________________________________
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author