#!/bin/sh #ident "@(#)full.sh 1.0 set xterm to full screen size - John S. Urban" ###################################### [ "$1" != '' ] && fixed $* ###################################### esc -max # bug with some window managers RIGHT=`esc -right` DOWN=`esc -down` RIGHT=${RIGHT:-0} DOWN=${DOWN:-0} [ $RIGHT -lt 0 ] && esc -right $((-RIGHT+1)) [ $DOWN -lt 0 ] && esc -down $((-DOWN+1)) exit ###################################### OLDWAY(){ esc -max -down 35 } ###################################### OLDWAY(){ # Does not account for decorations xrefresh esc -rows 0 -cols 0 -down 0 -right 0 xrefresh } ###################################### OLDWAY(){ if [ -f "`which resize 2>>/dev/null`" ] then eval `resize -u` # output of resize(1) is string, eg. 'COLUMNS=142; LINES=56; export COLUMNS LINES;' COLUMNS=$((COLUMNS-1)) LINES=$((LINES-3)) else COLUMNS="`esc -getpos|awk '{print $1}'`" LINES="`esc -getpos|awk '{print $2}'`" COLUMNS=$((COLUMNS-1)) LINES=$((LINES-3)) fi } ###################################### esc -rows $LINES -cols $COLUMNS exit