[comp.sys.amiga.tech] termcap for vt100,2.8

wdg@unccvax.UUCP (Doug Gullett) (03/17/88)

In article <1666@uhccux.UUCP>, lee@uhccux.UUCP (Greg Lee) writes:
> vt100-type terminals on this Ultrix 1.2 system have kl=\EOD.
> 
> program does not use curses.  But the sc spreadsheet program,
> e.g., does use curses, and it needs the entry kl=\EOD.  So


From: mohamed@hscfvax.harvard.edu (Mohamed_el_Lozy)
Newsgroups: comp.bugs.4bsd
Subject: Ultrix curses problem
Date: 12 Mar 88 14:31:18 GMT


>The /usr/include/curses.h header file for Ultrix 1.2 contains a kludge
>that is supposed to correct a problem with CRMOD action in curses.
>It's not clear exactly what the situation is, but the "fix" keeps sc
>from working correctly.  I don't know whether the problem exists with
>other releases of Ultrix.
>
>The fix is to include the following lines a the end of sc.h:
>
>#ifdef ultrix
>#undef nl
>#undef nonl
>#define nl()	 (_tty.sg_flags |= CRMOD,_pfast = _rawmode,stty(_tty_ch, &_tty))
>#define nonl()	 (_tty.sg_flags &= ~CRMOD, _pfast = TRUE, stty(_tty_ch, &_tty))
>#endif
>

The problem is not confined to sc, but is general.  The same patch had to
be added to make bpatch (recently posted to comp.sources.unix) work under
Ultrix 1.2.

(The fix and a test are not included.  Please see the indicated newsgroup
for the rest).

				Doug Gullett
				University of NC at Charlotte