locate¶
Purpose¶
Positions the cursor in the window.
Format¶
locate m, n;
Examples¶
// Get current row position of cursor
r = csrlin;
// Get current column positin of cursor
c = csrcol;
// Clear screen
cls;
// Place cursor at r, c
locate r,c;
In this example the window is cleared without affecting the cursor position.