DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

ismpx(C)


ismpx -- return windowing terminal state

Syntax

ismpx [ -s ]

Description

The ismpx command reports whether its standard input is connected to a multiplexed xt(HW) channel; that is, whether it is running under layers(C) 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, and prints no and returns 1 otherwise.


-s
Do not print anything; just return the proper exit status.

Exit values

Returns 0 if invoked under layers, 1 if not.

Examples

   if ismpx -s
   then
   	jwin
   fi

See also

jwin(C), layers(C), xt(HW)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005