I want to execute a command in a bash script that will resize the terminal window. In xterm
xterm -geometry=30x30
will create a new xterm window, and
lxterminal --geometry=30x30
will create a new lxterminal window.
Is there a way to resize either terminal without opening a new window? This is what it would look like:
if [ $TERMINALTYPE=xterm ]; then
DASH="-"
else
DASH="--"
endif
echo -e $TERMINALTYPE" "$DASH"geometry 30x30"
BUT: If there is a command that is a nice one-liner that will work with either terminal (vt100 escape sequence maybe) then that is even better.