Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!pacbell!att!whuts!lcuxlm!vilya!motown!clyde!watmath!mks!wheels From: wheels@mks.UUCP (Gerry Wheeler) Newsgroups: comp.os.minix Subject: Re: Line wrap Summary: phantom column 81 Message-ID: <531@mks.UUCP> Date: 21 Oct 88 16:55:25 GMT References: <091488A8547@syntel.UUCP> <5870007@hpcvca.HP.COM> Organization: Mortice Kern Systems, Waterloo, Ont. Lines: 23 In article <5870007@hpcvca.HP.COM>, charles@hpcvca.HP.COM (Charles Brown) writes: > > If I were writing the driver, I would have > > it wrap when you attempted to write one past the end of the line, *NOT* > > when you write into the last column. > > Generally the cursor sits where the NEXT character will be added. If > column 80 has just been filled you have 2 choices: > 1. Put the cursor on column 1 of the next line. > 2. Make the cursor disappear. Since the tty is now supposed to emulate (roughly) a VT100 terminal, why not do what DEC does? If a character is written into column 80, the cursor remains where it is, on top of the new character. If a CRLF follows, operation is as expected. If another character follows, it goes into column 1 of the next line (with scroll if necessary), and the cursor goes into column 2. This looks strange, and requires special handling in the driver. But it works well. I prefer this technique to no wrapping at all. -- Gerry Wheeler Phone: (519)884-2251 Mortice Kern Systems Inc. UUCP: uunet!watmath!mks!wheels 35 King St. North BIX: join mks Waterloo, Ontario N2J 2W9 CompuServe: 73260,1043