PressEscapeToQuit

Writes the message <Press Escape to quit or 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 PressEscapeToQuit  (void); 
  

Return Values

The following table lists return values and descriptions.

Value

Hex

Name

Description

0

(0x00)

ESUCCESS

Any key other than Escape was pressed.

1

 

 

Escape was pressed.

19

(0x13)

EWRNGKND

Input to System Console was attempted.

23

(0x17)

ENO_SCRNS

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

Remarks

Pressing the Escape key clears the <Press Escape to quit or any key to continue> message and the user can terminate the NLM depending on the return value.

See Also

getch, PressAnyKeyToContinue