os.exit

Attempts to terminate the process

Prototype

os.exit (n)

Description

Terminates the host program with the return code n (in standard Lua).

However, os.exit is does not do that in MUSHclient. It will raise an error if called ("'os.exit' not implemented in MUSHclient"). This is because doing an immediate exit bypasses all checks to save open documents, save plugin states, and so on.

Lua functions

Topics