[net.bugs.4bsd] Small bug in more

msc (03/10/83)

	I have just discovered a small bug in more's underlining
	routine.  I hadn't run into this bug till I started using
	a tvi925 terminal a few months ago.  I've only just got
	on the net so if this bug has been reported before I
	apologize.

	Symptoms:
		If the last word on a line is underlined, the underline
		continues under all blank spaces to the end of the line.

		This only happens on terminals which do not turn off
		an attribute when a carriage return is received.
		(eg tvi 925).

	Cause:
		When an underline ends just before a carriage return,
		more's underline filter reverses things and puts the
		carriage return before the underline-off code.  The
		attribute-off code therefore does not get into the
		terminal's buffer until column 1 of the next line.

	Fix:
		I took a quick look at it and the logic seemed fairly
		convoluted.  It looked like it would require some
		substantial hacking to fix it.  I'm hoping this bug
		has been reported before and someone already has a fix.
		If so please send it to me.

			Mark Callow
			Qubix Graphic Systems Inc.

			...decvax!decwrl!qubix!msc (faster)
			...ucbvax!ucscc!qubix!msc