PressAnyKeyToContinue

Writes the message <Press any key to continue> to the current screen

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

Syntax

  #include <nwconio.h>  
   
  int PressAnyKeyToContinue  (void); 
  

Return Values

The following table lists return values and descriptions.

Value

Hex

Name

Description

0

(0x00)

ESUCCESS

Successful.

19

(0x13)

EWRNGKND

Input to System Console was attempted.

23

(0x17)

ENO_SCRNS

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

Remarks

When a key is pressed, the <Press any key to continue> message is cleared and normal screen activity resumes. The thread is blocked until a key is pressed.

NOTE:If another thread causes the screen to scroll before a key is pressed, the <Press any key to continue> message might not be properly erased.

See Also

getch, PressEscapeToQuit