예제 #1
0
// Send a command to the terminal to move the hardware cursor to row "row" and column "col".  The row and column arguments are
// origin 0.  Return status.
int movecursor(int row,int col) {

	(void) TTmove(row,col);
	if(row == term.t_nrow - 1)
		ml.ttcol = col;
	return rc.status;
	}
예제 #2
0
static void
tcapclose(void)
{
#if OPT_VIDEO_ATTRS
	if (ME)	/* end special attributes (including color) */
		putpad(ME);
#endif
	TTmove(term.t_nrow-1, 0);	/* cf: dumbterm.c */
	tcapeeol();
#if OPT_COLOR
	shown_fcolor = shown_bcolor =
	given_fcolor = given_bcolor = NO_COLOR;
#endif
}