[net.unix-wizards] Xenix compiler and termcap problems

robin@medstar.UUCP (Robin Cutshaw) (07/25/85)

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