Skip to content
Thomas Foster edited this page Mar 22, 2021 · 7 revisions

Function   Positions cursor in text window.

Syntaxvoid gotoxy(int x, int y);

Prototype in   conio.h

Return value   None.

See alsowherex wherey window

Remarks

gotoxy moves the cursor to the given position in the current text window. If the coordinates are in any way invalid, the call to gotoxy is ignored. An example of this is a call to gotoxy(40, 30) when (35, 25) is the bottom right position in the window.

Example

gotoxy(10, 20); /* position the cursor at col 10, row 20 */

Header Files

Clone this wiki locally