LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Linux Answers > Applications / GUI / Multimedia
User Name
Password

Notices

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:

Code:
# 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:\
    :am:km:mi:ms:xn:\
    :co#80:it#8:li#24:\
    :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
    :LE=\E[%dD:\
    :RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:bt=\E[Z:\
    :cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
    :cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ec=\E[%dX:\
    :ei=\E[4l:ho=\E[H:im=\E[4h:is=\E[!p\E[?3;4l\E[4l\E>:\
    :kD=\177:\
    :kb=^H:ke=\E[?1l\E>:\
    :ks=\E[?1h\E=:le=^H:mb=\E[5m:md=\E[1m:\
    :me=\E[m\017:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[27m:\
    :sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:te=\E[?1047l\E[?1048l:\
    :ti=\E[?1048h\E[?1047h:ue=\E[24m:up=\E[A:us=\E[4m:\
    :vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:vs=\E[?25h:
# 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):\
    :kD=\E[3~:kb=\177:tc=xterm-xfree86:
# 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:\
    :tc=xterm-redhat:
The important line here is:
Code:
:co#80:it#8:li#24:\
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;
Code:
:co#100:it#8:li#30:\
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.



All times are GMT -5. The time now is 11:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration