#include <sgtty.h>

main()
{
	struct sgttyb tty;

	/*
	 * Get the present terminal modes.
	 */
	ioctl(2, TIOCGETP, &tty);

	/*
	 * Set the erase character to '^H' and
	 * turn echo on.
	 */
	tty.sg\(ulerase = '\e010';
	tty.sg\(ulflags |= ECHO;		

	/*
	 * Set the new modes.
	 */
	ioctl(2, TIOCSETP, &tty);
}
