函数名: wherex
功能: 返回窗口内水平光标位置
用法: int wherex(void);
程序例:
#include
int main(void)
{
clrscr();
gotoxy(10,10);
cprintf("Current location is X: %d Y: %d\r\n", wherex(), wherey());
getch();
return 0;
}
函数名: wherey
功能: 返回窗口内垂直光标位置
用法: int wherey(void);
程序例:
#include
int main(void)
{
clrscr();
gotoxy(10,10);
cprintf("Current location is X: %d Y: %d\r\n", wherex(), wherey());
getch();
return 0;
}
函数名: window
功能: 定义活动文本模式窗口
用法: void window(int left, int top, int right, int bottom);
程序例:
#include
int main(void)
{
window(10,10,40,11);
textcolor(BLACK);
textbackground(WHITE);
cprintf("This is a test\r\n");
return 0;
}