#!/bin/sh - if [ $# -eq 1 -a x"$1" = x"--window" ]; then xt -e sh -c "`xprompt -re -p 'Command'` ; \ echo '--> press enter when done <--' ; read nothing" else toolwait `xprompt -re -p 'Command'` fi