我想知道如何在控制台中移动光标?
例如:
gotoxy(int x , int y)
{ /*Put the Code Here*/ }
最佳答案
尝试:
void gotoxy(int x,int y)
{
printf("%c[%d;%df",0x1B,y,x);
}
关于c - Linux下如何在不使用ncurses的情况下移动C中的光标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35679554/