pressenterkey

Issues a prompt on the application screen and returns as soon as the Enter key has been pressed on the application screen keyboard.

Library:LibC
Classification:Novell
Service:Screen Support

Syntax

  #include <screen.h> 
   
  int pressenterkey ( void );
  

Return Values

Returns 0 when the Enter key has been pressed. If the another key has been pressed, causes the console speaker to beep and waits for the Enter key. If an error occurs, returns -1 and sets errno to one of the following:

Decimal

Constant

Description

19

EWRNGKND

The wrong kind of operation is being attempted on the wrong kind of object.

23

ENO_SCRNS

Screen I/O is being attempted when no screen is available.

105

ENOCONTEXT

No thread context is present.

See Also