flee@gondor.psu.edu (Felix Lee) (11/15/87)
In article <9290@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: > Perhaps terminfo defines this better. In termcap, unfortunately, > `xn' does not describe cursor positioning when a character is > printed at the end of a line. No, terminfo says nothing about cursor position. It does explicitly say that xenl denotes both the eat-newline-glitch and magic-wrap. In the presence of xenl, you should probably lose the cursor position when you bang past the right margin: use absolute cursor addressing if you must move from that indeterminate position between lines. > I wanted to be able to write the last character of each line, > including the last line. Writing to the lower right corner without scrolling is not guaranteed with xenl (maybe we need a boolean can-write-lower-right). Without that guarantee, I can think of a number of ways of writing in the lower-right corner, all more trouble than it's worth (scroll regions, insert line, insert character). It's much easier to avoid the problem altogether. > (If anyone cares, my Window Library assumes that `xn' describes > the terminal with the virtual column. The code *is* 5 years old: > I know better now, but have not the time to fix it.) GNU Emacs also thinks xn describes only magic-wrap. -- Felix Lee flee@gondor.psu.edu {cbosgd,cmcl2}!psuvax1!gondor!flee