LXTerminal and XTerm Resize Command

There are two steps to this. First, you need to tell xterm to allow it to happen at all, because by default it ignores requests by hosted programs to resize the window. Add this to your ~/.Xdefaults:

xterm*allowWindowOps: true

For this to take effect, you either have to log out, or run:

xrdb ~/.Xdefaults

Then launch a new xterm, and in your bash script:

echo -ne "\e[8;30;30t"

Just want to share:

apt-get install xterm

Use the following resize command where 20 = no of rows, 40 = no of columns:

resize -s 20 40

Change the value of rows and columns as per requirement.