Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ismpx(1) — Interactive 3.2r4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

jwin(1)

layers(1)

xt(7)

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

jwin(1), layers(1), xt(7). 

EXAMPLE

if ismpx −s
then
jwin
fi

\*U  —  Version 1.0

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026