ismpx(1) (AT&T Windowing Utilities) ismpx(1)
NAME
ismpx - return windowing terminal state
SYNOPSIS
ismpx [-s]
DESCRIPTION
The ismpx command reports whether its standard input is connected to
a multiplexed xt channel; i.e., whether it's running under layers or
not. It is useful for shell scripts that download programs to a
windowing terminal.
ismpx prints yes and returns 0 if invoked under layers, and prints no
and returns 1 otherwise.
-s Do not print anything; just return the proper exit status.
SEE ALSO
layers(1), jwin(1), xt(7).
EXAMPLE
if ismpx -s
then
jwin
fi
7/91 Page 1