The niladic system function ŒTT returns terminal type as a code number. Normally ŒTT returns 0. The meaning of any other codes returned by ŒTT depends on the hardware on which APLX is installed.