Novell is now a part of Micro Focus

How to Auto Close the NLM Screen

Articles and Tips: tip

Paul Hardwick
Novell, Inc.

01 Mar 2002


When creating an NLM with CodeWarrior, you will be opening a default screen. All "printf" statements will output to this default screen. When the NLM finishes and exits, you will be presented with a "<Press any key to close screen >" message.

If you do not want this and want the NLM to terminate completely when your code is completed, then you need to perform the following:

#include <nwconio.h>
SetAutoScreenDestructionMode (TRUE);

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Micro Focus