Previous Page Next Page Contents

Pref::callOnExit -- defines an exit handler

Introduction

Pref::callOnExit(f) defines a function f which is called on exit of MuPAD.

Call(s)

Pref::callOnExit(f)
Pref::callOnExit(list)
Pref::callOnExit(NIL)
Pref::callOnExit()

Parameters

f - a function
list - a list of functions

Returns

Pref::callOnExit returns the previously defined function, list of functions, or NIL.

Related Functions

_quit, Pref::postOutput

Details

Example 1

This example shows how to print some text on exit of MuPAD. It only works in the UNIX terminal versions of MuPAD:

>> Pref::callOnExit(
     ()->print(Unquoted, "Good by, thank You for using MuPAD.")
   ):
   quit
                    Good by, thank You for using MuPAD.

In the frontends on all platforms the output is the following since

Background

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000