| GEMLIB
    0.44.0
    | 
#include <mt_gem.h>
| Data Fields | |
| short | dummy | 
| long | magic | 
| short | isfirst | 
| long | lasterr | 
| short | wasgr | 
tail for default shell (MagiC), see mt_shel_write()
| short SHELTAIL::dummy | 
a null word
| short SHELTAIL::isfirst | 
first call of the Shell If isfirst is set then the status is to be read from something like DESKTOP.INF, if isfirst is not set then one takes the temporary file or shell-buffer. 
| long SHELTAIL::lasterr | 
last error lasterr is the return value of the program running previously. If this was a GEM program then the error will already have been displayed in an alert box. It is well known that the longword is negative if the error occurred with Pexec itself; a program return value always has the high word 0.
| long SHELTAIL::magic | 
'SHEL', if it's a Shell
| short SHELTAIL::wasgr | 
Program was a grafic app.
 1.8.9.1
 1.8.9.1