Exemplo n.º 1
0
Arquivo: ansi.c Projeto: ytoto/uemacs
void ansimove(row, col)
{
	ttputc(ESC);
	ttputc('[');
	ansiparm(row + 1);
	ttputc(';');
	ansiparm(col + 1);
	ttputc('H');
}
Exemplo n.º 2
0
int
ansimove(int row, int col)
{
        ttputc(ESC);
        ttputc('[');
        ansiparm(row+1);
        ttputc(';');
        ansiparm(col+1);
        ttputc('H');
}
Exemplo n.º 3
0
int
ansiparm(int n)
{
        register int    q;

        q = n/10;
        if (q != 0)
                ansiparm(q);
        ttputc((n%10) + '0');
}
Exemplo n.º 4
0
Arquivo: ansi.c Projeto: ytoto/uemacs
/* set the current output color */
void ansifcol(int color)
{
	if (color == cfcolor)
		return;
	ttputc(ESC);
	ttputc('[');
	ansiparm(color + 30);
	ttputc('m');
	cfcolor = color;
}
Exemplo n.º 5
0
Arquivo: ansi.c Projeto: ytoto/uemacs
/* 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;
}