You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
605 B

#!/bin/sh
#
# Eterm Window Operation Aid
#
# $Id$
if [ $# -eq 0 ]; then
echo "Syntax: Etwinop { raise | lower | map | unmap | move | resize | iconify | kill } [windowid]"
echo
exit 0
fi
# Code to figure out if we need 'echo -n' or 'echo "\c"', stolen from configure
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
'
else
ac_n=-n ac_c=
fi
else
ac_n= ac_c='\c'
fi
winop="$*"
echo $ac_n "]7;winop:$winop$ac_c"