Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site medstar.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!harvard!think!mit-eddie!genrad!decvax!harpo!whuxlm!akgua!gatech!medstar!robin From: robin@medstar.UUCP (Robin Cutshaw) Newsgroups: net.unix-wizards,net.micro.pc Subject: Xenix compiler and termcap problems Message-ID: <186@medstar.UUCP> Date: Thu, 25-Jul-85 14:57:08 EDT Article-I.D.: medstar.186 Posted: Thu Jul 25 14:57:08 1985 Date-Received: Sun, 28-Jul-85 04:38:48 EDT Distribution: net Organization: Medical Systems Technology and Research, Inc., Atlanta, Ga. Lines: 32 Xref: linus net.unix-wizards:11215 net.micro.pc:4419 The following program will confuse the compiler (as will many others). Note that the "diagnostic output" source=line number references are wrong. main() { float a; a = 0.0; if ( ((a + 1) - a) == 1) /* no error */ ; if ( ((a + 1.0) - a) == 1) /* line #10 - single compiler error */ ; if ( ((a + 1.0) - a) == 1.0) /* line #13 double compiler error */ ; } The termcap entry for ansi has one minor error, :ms: should be :ns:. Also, one could add kh=\E[H (for home key) and is=\E[10m to get back to the standard character set (this can be a great help if you die after going into the graphics character set). Undocumented but available are \E[11m and \E[12m for the first and second alternate character sets (see GS and GE in "ansi"). -- ---- Robin Cutshaw uucp: ...!{akgua,gatech}!medstar!robin