From: <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.dk
Subject: [Fwd: [problem] HP-UX tgetent()]
Date: Tue, 3 Sep 2002 19:56:33 +0000 [thread overview]
Message-ID: <20020903195633.YVGL23487.fep08-svc.ttyl.com@localhost> (raw)
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
next reply other threads:[~2002-09-04 7:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-03 19:56 pws [this message]
2002-09-04 14:46 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020903195633.YVGL23487.fep08-svc.ttyl.com@localhost \
--to=pws@pwstephenson.fsnet.co.uk \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).