Move text cursor to particular screen coordinate?

后端 未结 7 1821
余生分开走
余生分开走 2020-12-31 19:01

How can I set the cursor at the desired location on the console in C or C++?

I remember a function called gotoxy(x,y), but I think its deprecated. Is th

7条回答
  •  -上瘾入骨i
    2020-12-31 19:36

    In case you are talking about ncurses library, the function you are after is move (row, column).

提交回复
热议问题