pressanykey

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

Library:LibC
Classification:Novell
Service:Screen Support

Syntax

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

Return Values

Returns 0 when a key has been pressed. Returns -1 when an error occurs 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