mark (03/23/83)
Termcap in fact DOES provide a "weird automargining" capability, it's xn (eat newline glitch) and was put there specifically for concept 100's and vt100's. (Version 3.6 and earlier of vi did not handle it properly on a vt100 - the fix is trivial and was in 3.7. You just arrange to output an extra \r\n in the place where an extra \n was output. Search for XN (there are two of them in vi) and fix both, and do it carefully - remember that putchar takes only single characters and you'll need a set of curly braces. Mark Horton