Path: tut!enea!mcvax!seismo!lll-lcc!styx!ames!ucbcad!ucbvax!decvax!dartvax!vizard
From: vizard@dartvax.UUCP (Todd Krein)
Newsgroups: comp.os.minix
Subject: Bugfix to tty.c
Keywords: erase bol
Message-ID: <6088@dartvax.UUCP>
Date: 29 Apr 87 18:05:03 GMT
Organization: Dartmouth College, Hanover, NH
Lines: 29


<munch...munch>

	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

	
