ismpx
[option]Test whether standard input is running under layers. (Command name comes from "Is the multiplexor running?") Output is either yes
(exit status 0) or no
(exit status 1). Useful for shell scripts that download programs to a layers windowing terminal or that depend on screen size.
-s
Suppress output and return exit status only.
if ismpx -s then jwin fi