Actually there are three cases - normal, iconified and maximized.
There's no command-line option
for this, but (assuming that the allowWindowOps resource isn't
disabled), xterm does respond to
a "maximize" escape sequence. One could set an environment variable
that's visible to the shell
started in xterm, and use that to decide when to send the escape
sequence.
--
Thomas E. Dickey <dic...@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net