By alan_ri at 2009-03-22 02:42
If you try to do it by editing your profile in gnome-terminal you'll see that there actually isn't an option for it and if you just use your mouse to resize it while you do your work in the gnome-terminal you'll see that if you close it and then start it again the size will be default,as before.
I have done some searching and reading and this is what I've found;
You need to look for a file,which in my example,because this was done on Ubuntu is in /usr/share/vte/termcap/xterm and it looks like this:
The important line here is:
# This is a cut-down version of the termcap file from my box with some entries
# removed (add them back in to override the terminal's behavior):
# kI (Insert, Delete is handled programmatically)
# kP/kN (Page Up, Page Down)
# ku/kd/kl/kr (Up, Down, Left, Right)
# k1/kd2/k3/k4/k5/k6/k7/k8/k9/k; (F1-F10)
# K1/K2/K3/K4/K5 (KP Up, Down, Left, Right, Begin)
xterm-xfree86|xterm-new|xterm terminal emulator (XFree86):\:co#100:it#8:li#30:\
# xterm-redhat is identical to xterm-xfree86 with the addition of a small
# VT220-ism regarding the backspace and delete keys; this is mandated by
# the keyboard configuration section of the Debian Policy Manual.
xterm-redhat|Red Hat xterm (backspace and delete changed):\
# This is the only entry which you should have to customize, since "xterm"
# is widely used for a variety of incompatible terminal emulations including
# color_xterm and rxvt.
xterm|X11 terminal emulator:\
This is default value;80x24,so you should see it when you first open a file,if you haven't change defaults somehow.So all there needs to be done is to change the first and the last number in that code/line,for example like this;
That's if you want to have gnome-terminal 100x30 in size.Save the file and restart gnome-terminal for changes to take affect.
There have been lots of questions about this around the net,so I thought it would be good that this how to is here at LQ.