LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxAnswers Discussion (https://www.linuxquestions.org/questions/linuxanswers-discussion-27/)
-   -   How to set default size for gnome-terminal (https://www.linuxquestions.org/questions/linuxanswers-discussion-27/how-to-set-default-size-for-gnome-terminal-743155/)

alan_ri 07-27-2009 01:34 PM

How to set default size for gnome-terminal
 
A new la entry has been added:

How to set default size for gnome-terminal

Quote:

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
# r

bg3075 05-17-2010 08:23 PM

Location of xterm in Fedora
 
In Fedora Core 12, file is located at usr/share/vte/termcap/xterm

iqbal.shirol 06-03-2010 02:19 AM

Ubuntu 8.04 - change the default size for gnome-terminal
 
In Ubuntu 8.04 also the same path:

/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: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:\

LouRobytes 06-03-2010 07:02 AM

In the terminal window Edit->Profile Preferences. Under the General tab, you can set the Default size of columns and rows. These take effect the next time Terminal is launched.

Cheers, Lou

iqbal.shirol 06-03-2010 11:34 PM

Re: To Lou, change the default size for gnome-terminal
 
Hey 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.

LouRobytes 06-04-2010 01:00 PM

Thanks Iqbal S, I hadn't realized how old the first post was.

Cheers, Lou

iqbal.shirol 06-04-2010 11:43 PM

Re: To Lou, change the default size for gnome-terminal
 
Hey 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.

lorikaufman 05-12-2011 01:28 PM

Changing default size of terminal window
 
Quote:

Originally Posted by iqbal.shirol (Post 3992017)
Hey 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.

What's the newest version of Ubuntu in which you can use Edit->Profile Preferences to change the default size of the terminal window rather than changing it manually?

Thanks,
Lori


cameronl 05-14-2011 02:06 AM

Quote:

Originally Posted by lorikaufman (Post 4354553)
What's the newest version of Ubuntu in which you can use Edit->Profile Preferences to change the default size of the terminal window rather than changing it manually?

Thanks,
Lori

According to this:
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.

farmerdave 06-24-2011 04:04 AM

I have Gnome Slackware 13.1, this works well. File is located /usr/share/vte/termcap/xterm

smilingfrog 01-14-2012 09:35 PM

Since this post came up first on a google search, I thought I would add this link that shows how to adjust the property on the launcher tab in gnome to achieve the same effect.

Right click on the launcher icon. Select Properties and change the command: box to
Code:

gnome-terminal --geometry=123x42+0+0
where 123 is the width of the terminal, 42 is the height, and the +0+0 will give offsets from the upper left of the screen, replacing 0 with numbers.

A bit more flexible maybe.

Gurutechnet 03-21-2013 03:04 AM

gnome-terminal --geometry=86x19+0+0


All times are GMT -5. The time now is 02:21 AM.