void ansimove(row, col) { ttputc(ESC); ttputc('['); ansiparm(row + 1); ttputc(';'); ansiparm(col + 1); ttputc('H'); }
int ansimove(int row, int col) { ttputc(ESC); ttputc('['); ansiparm(row+1); ttputc(';'); ansiparm(col+1); ttputc('H'); }
int ansiparm(int n) { register int q; q = n/10; if (q != 0) ansiparm(q); ttputc((n%10) + '0'); }
/* set the current output color */ void ansifcol(int color) { if (color == cfcolor) return; ttputc(ESC); ttputc('['); ansiparm(color + 30); ttputc('m'); cfcolor = color; }
/* Set the current background color. * color: color to set. */ void ansibcol(int color) { if (color == cbcolor) return; ttputc(ESC); ttputc('['); ansiparm(color + 40); ttputc('m'); cbcolor = color; }