| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
|
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 01:09 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|
/usr/share/vte/termcap/xterm
The default size is always 80 columns and 24 lines.
/usr/share/vte/termcap/xterm (part of the file is shown below)
You edit the default size by changing the line (displayed in bold below)
-----------
/usr/share/vte/termcap/xterm
-----------
# 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):\
:am:km:mi:ms:xn:\
:co#80:it#8:li#24:\ #change this line for your own default size
:AL=\E[%dL
: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:\
Cheers, Lou
They thing you are explaining is only available for newer versions of Linux.. For old versions you have to edit the file which I had mentioned earlier..
Cheers,
Iqbal S.
Cheers, Lou
Post is new one but the version which I have mentioned (Ubuntu 8.04) in that post is older one.. And for old versions you have to edit the file which I had mentioned earlier..
Cheers,
Iqbal S.
They thing you are explaining is only available for newer versions of Linux.. For old versions you have to edit the file which I had mentioned earlier..
Cheers,
Iqbal S.
Thanks,
Lori
Thanks,
Lori
https://bugzilla.gnome.org/show_bug.cgi?id=155147#c55
It no longer works in gnome-terminal >= 2.30.x
And according to this:
http://ubuntuforums.org/archive/inde...t-1581201.html
Ubuntu 10.04 shipped with gnome-terminal < 2.30.x but updates will update it to the new gnome-terminal.
Right click on the launcher icon. Select Properties and change the command: box to
A bit more flexible maybe.