Date: Wed, 20 Sep 2000 13:35:00 -0400 From: Mark.Jacobs@custserv.com To: jacobsm@gate.net, freebsd-stable@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: ports/21264: tn3270 port rec Message-ID: <NX674a30-33421838@custserv.com>
next in thread | raw e-mail | index | archive | help
Just investigating this further... There is a setupterm() function in the tn3270 sources (see line 741 of telnet.c) However, this is included only if TERMCAP is defined. If you remove the TERMCAP definition from the CFLAGS in Makefile.inc, tn3270 will "run" again. But, it is really ugly; each field is highlighted, and the highlights seem to "hang around" (possibly an ncurses issue?) However, as to the particular bug - removing -DTERMCAP from the CFLAGs will fix it. Alternatively, renaming the setupterm() function in telnet.c also corrects the problem (again, giving the weird curses issues...) For example, I simply renamed setupterm() to Setupterm() as in the following diff and things "worked" (this might be simpler to add as a patch): *** telnet.c.ori Tue Sep 19 09:07:55 2000 --- telnet.c Tue Sep 19 09:07:47 2000 *************** *** 738,744 **** /*ARGSUSED*/ int ! setupterm(tname, fd, errp) char *tname; int fd, *errp; { --- 738,744 ---- /*ARGSUSED*/ int ! Setupterm(tname, fd, errp) char *tname; int fd, *errp; { *************** *** 772,778 **** if (tnamep && tnamep != unknown) free(tnamep); if ((tname = (char *)env_getvalue((unsigned char *)"TERM")) && ! (setupterm(tname, 1, &err) == 0)) { tnamep = mklist(termbuf, tname); } else { if (tname && (strlen(tname) <= 40)) { --- 772,778 ---- if (tnamep && tnamep != unknown) free(tnamep); if ((tname = (char *)env_getvalue((unsigned char *)"TERM")) && ! (Setupterm(tname, 1, &err) == 0)) { tnamep = mklist(termbuf, tname); } else { if (tname && (strlen(tname) <= 40)) { - Dave Rivers - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe (370) `C' compiler at http://www.dignus.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NX674a30-33421838>