--- gnome-terminal.c	2002/01/13 13:43:24	1.1
+++ gnome-terminal.c	2002/01/13 13:54:22
@@ -113,6 +113,8 @@
 	enum color_set_enum color_set;
 	char *font; 				/* Font used by the terminals */
 	int scrollback; 			/* Number of scrollbacklines */
+        int lines;                              /* Number of lines */
+        int columns;                            /* Number of columns */
 	char *class;
 	enum scrollbar_position_enum scrollbar_position;
 	int invoke_as_login_shell; 		/* How to invoke the shell */
@@ -496,6 +498,8 @@
 	cfg->class = g_strdup (class);
 
 	cfg->scrollback = gnome_config_get_int ("scrollbacklines=100");
+        cfg->lines   = gnome_config_get_int ("lines=24");
+        cfg->columns = gnome_config_get_int ("columns=80");
 	cfg->font    = gnome_config_get_string ("font=" DEFAULT_FONT);
 	cfg->wordclass  = gnome_config_get_string ("wordclass=-A-Za-z0-9,./?%&#");
 	p = gnome_config_get_string ("scrollpos=right");
@@ -1031,6 +1035,8 @@
 	gnome_config_set_bool   ("login_by_default", cfg->login_by_default);
 	gnome_config_set_bool   ("use_bold", cfg->use_bold);
 	gnome_config_set_int    ("scrollbacklines", cfg->scrollback);
+	gnome_config_set_int    ("lines", cfg->lines);
+	gnome_config_set_int    ("columns", cfg->columns);
 	gnome_config_set_int    ("color_set", cfg->color_set);
 	if (cfg->color_type>=4)
 		cfg->color_type=4;
@@ -2152,21 +2158,23 @@
 	 * terminal rows and columns
 	 */
 
-	width=80;
-	height=24;
+	width=cfg->columns;
+	height=cfg->lines;
 	xpos=-1;
 	ypos=-1;
 	if (geometry) {
 		gnome_parse_geometry (geometry, &xpos, &ypos, &width, &height);
 		if (width == -1 || height == -1) {
-			width=80;
-			height=24;
+			width=cfg->columns;
+			height=cfg->lines;
 		}
 		/* Only the first window gets --geometry treatment for now */
 		geometry = NULL;
 	}
 
 	term = (ZvtTerm *)zvt_term_new_with_size(width, height);
+	cfg->columns=width;
+        cfg->lines=height;
 	if (xpos != -1 && ypos != -1)
 		gtk_widget_set_uposition (GTK_WIDGET (app), xpos, ypos);
 
