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(7) channel; i.e., whether it’s running under layers(1) or not. It is useful for shell scripts that download programs to a windowing terminal or depend on screen size.
The ismpx command prints yes and returns 0 if invoked under layers(1), and prints no and returns 1 otherwise.
−s Do not print anything; just return the proper exit status.
EXIT STATUS
Returns 0 if invoked under layers(1), 1 if not.
SEE ALSO
EXAMPLE
if ismpx −s
then
jwin
fi
\*U — Version 1.0