Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbatt!ucbvax!decvax!dartvax!vizard From: vizard@dartvax.UUCP Newsgroups: comp.os.minix Subject: Bugfix to tty.c Message-ID: <6088@dartvax.UUCP> Date: Wed, 29-Apr-87 14:05:03 EDT Article-I.D.: dartvax.6088 Posted: Wed Apr 29 14:05:03 1987 Date-Received: Sat, 2-May-87 01:56:28 EDT Organization: Dartmouth College, Hanover, NH Lines: 29 Keywords: erase bol There is a simple fix to prevent the tty driver from erasing past the begining of the line. In file 'tty.c', change in the routine in_char() [around line 3610 in the book] chuck(tp); echo(tp,'\b'); echo(tp,' '); echo(tp,'\b'); return; to if (chuck(tp) != -1) { echo(tp,'\b'); echo(tp,' '); echo(tp,'\b'); } return; In this way, it won't erase if 'chuck' says it shouldn't. Todd Krein vizard@dartvax