getscreenmode

Determines the mode of the application screen.

Library:LibC
Classification:Novell
Service:Screen Support

Syntax

  #include <screen.h> 
   
  int getscreenmode (
     unsigned long   *mode);
  

Parameters

mode

(OUT) Specifies the mode of the screen.

Flag

Value

Description

SCR_NO_MODE

0x00000000

No mode is assigned to the screen.

SCR_AUTOCLOSE_ON_EXIT

0x00000001

The screen is set to close when the NLM™ that created it exits.

SCR_COLOR_ATTRS

0x00000002

On NetWare® 6.0 SP2 or later, color printing is enabled.

Return Values

If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:

Decimal

Constant

Description

23

ENO_SCRNS

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

105

ENOCONTEXT

No thread context is present.

See Also

setscreenmode