send_SGR(0);
if (screen->print_attributes) send_SGR(0,-1,-1);
static void printLine(row, chr)	int row;	int chr;{	register TScreen *screen = &term->screen;	Char *c = SCRN_BUF_CHARS(screen, row);	Char *a = SCRN_BUF_ATTRS(screen, row);	Char attr = *a & SGR_MASK;	int last = screen->max_col;	TRACE(("printLine(row=%d, chr=%d)\n", row, chr))	while (last > 0) {		if ((a[last-1] & CHARDRAWN) == 0)			last--;		else			break;	}	if (last) {		send_CharSet(row);	/* FIXME: is this needed? */		send_SGR(0);		while (last--) {			if (((*a & SGR_MASK) != attr) && *c) {				send_SGR(attr = (*a & SGR_MASK));			}			charToPrinter(*c ? *c : ' ');			c++;			a++;		}		send_SGR(0);	}	charToPrinter('\r');	charToPrinter(chr);}