Subject: lib/17954
To: None <gnats-bugs@gnats.netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 10/27/2002 17:24:10
This is caused by re_goto_bottom explicitely outputting
both a CR and a LF.  Under netbsd (at least), and from
the shell, OPOST and ONLCR are both enabled so that
the tty line driver generates a CR before outputting the LF.

I think that the table in tty.c also ensures that OPOST and ONLCR
are both set.  In which case re_goto_bottom can safely be changed to:

/* re_goto_bottom():
 *       used to go to last used screen line
 */                     
protected void          
re_goto_bottom(EditLine *el)
{               
        
	term_move_to_line(el, el->el_refresh.r_oldcv);
	term__putc('\n');
	re_clear_display(el);
	term__flush();          
}        

	David

-- 
David Laight: david@l8s.co.uk