#include <sys/ioctl.h>
#include <sgtty.h>

static struct sgttyb oldtty;

initty()
{
	struct sgttyb newtty;

	ioctl(1, TIOCGETP, &oldtty);
	newtty = oldtty;
	newtty.sg_flags |= LGRAPH;
	ioctl(1, TIOCSETP, &newtty);
}

/*
 * reset the tty length.
 */
resetty()
{
	ioctl(1, TIOCSETP, &oldtty);
}
