ka@spanky.UUCP (Kenneth Almquist) (09/21/83)
There are two problems with the virtterm terminal handler included with vnews. The first is that it doesn't handle the ti/te capabilities correctly. A diff of the changes required to fix this is given below. Before you install this change, be sure that your termcap file is not referring to the the ti capability by the name "ts". The name ti is correct according to the 4.1 BSD manual. The second problem is that the arguments to the cs macro may be in the wrong order for your termcap entry. Vnews passes the top line of the region as the first parameter and the bottom line as the second. Now my understanding is that the termcap entry for the vt100 provided with 4.1 BSD will only work if the arguments are given in the order used by vnews but the termcap entry for the vt100 provided with 4.1C will only work if the arguments are given in the reverse order from the order used by vnews. Since the 4.1 manual is completely silent on the order of arguments to the cs parameter, I don't know which is correct. So if your termcap won't work with vnews, change either termcap or virtterm.c as you prefer. Kenneth Almquist ---------------------------- 34c34 < #define TS _tstr[18] /* start cursor mode */ --- > #define TI _tstr[18] /* start cursor mode */ 41c41 < static char sname[] = "hoclcdceupdousuebtbcaldlcmchcvcssfsrtstetacrpc"; --- > static char sname[] = "hoclcdceupdousuebtbcaldlcmchcvcssfsrtitetacrpc"; 856,857c856,857 < if (TS != NULL) < tputs(TS, 0, vputc); --- > if (TI != NULL) > tputs(TI, 0, vputc); 862,863c862,865 < if (TE != NULL) < tputs(TE, 0, vputc); --- > if (TE != NULL) { > tputs(TE, 0, vputc); > vflush() ; > }