clrscr

Disables the cursor and clears the current screen (implemented for NetWare ® 3.0 and above)

Local Servers:nonblocking
Remote Servers:N/A
Classification:Other
Service:Screen Handling

Syntax

  #include <nwconio.h>  
   
  void clrscr  (void); 
  

Return Values

None

If an error occurs, errno is set to:

Value

Hex

Name

Description

23

(0x17)

ENO_SCRNS

Screen I/O was attempted when no screens were open.

Remarks

The clrscr function clears the current screen and places the cursor (invisibly) in the upper left-hand corner (at position 0,0).

See Also

DisplayInputCursor

Example

  #include <stdlib.h>  
  #include <nwconio.h>  
  #include <stdio.h>  
  main()  
  {  
     printf("type any character...");  
     getch();  
     clrscr();  
     printf("this should be on a clear screen\r\n");  
     getch();                      /* getch will reenable cursor */  
  }