gotoxy

Positions the output cursor on the current screen

Local Servers:nonblocking
Remote Servers:N/A
Classification:3.x, 4.x, 5.x, 6.x
Service:Screen Handling

Syntax

  #include <nwconio.h>  
   
  void gotoxy  (  
     WORD   column,   
     WORD   row); 
  

Parameters

column

(IN) Specifies the column on which to position the cursor.

row

(IN) Specifies the row on which to position the cursor.

Return Values

This function returns no value.

If an error occurs, errno is set to:

Value

Hex

Name

Description

23

(0x17)

ENO_SCRNS

No screens were open.

Remarks

The output cursor is positioned on the current screen. If cursor coupling is enabled for the current screen, the input cursor is also positioned.

NOTE:The order of the row and column parameters is different from all the other functions that take row and column arguments.

See Also

SetOutputAtInputCursorPosition, SetPositionOfInputCursor

Example

  #include   <stdlib.h>  
  #include   <nwconio.h>  
  main()  
  {  
     gotoxy(10,10);  
     printf("A");  
     gotoxy(50,10);  
     printf("B");  
     getch();  
  }