#ifndef _vid_c_ #define _vid_c_ #include "elastro.h" void ScrClear() { fprintf(stdout,"\x1b\x5b\x32\x4a"); } void ScrMove(int x, int y) { fprintf(stdout,"\x1b\x5b%03d\x3b%03d\x48",y,x); } void ScrCol(int bk,int fg) { int fgc,hgc; hgc = 0; fgc = fg; if(fgc > 7){ fgc = fgc - 8; hgc = 1; } fprintf(stdout,"\x1b\x5b%1d\x6d\x1b\x5b\x33%1d\x6d",hgc,fgc); fprintf(stdout,"\x1b\x5b\x34%1d\x6d",bk); } #endif /*_vid_c*/