# HG changeset patch # User Dan White # Date 1295736734 21600 # Node ID 43d81054caca1178454272a13b3f984d5493f766 # Parent 13e4ac490461180e879a45d11a091470695132c1 Add config for default rows/cols as DEFAULT_{ROWS,COLS} in config.def.h diff -r 13e4ac490461 -r 43d81054caca config.def.h --- a/config.def.h Sun Dec 12 13:32:13 2010 +0100 +++ b/config.def.h Sat Jan 22 16:52:14 2011 -0600 @@ -4,6 +4,8 @@ #define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*" #define BORDER 2 #define SHELL "/bin/sh" +#define DEFAULT_COLS 80 +#define DEFAULT_ROWS 24 /* Terminal colors */ static const char *colorname[] = { diff -r 13e4ac490461 -r 43d81054caca st.c --- a/st.c Sun Dec 12 13:32:13 2010 +0100 +++ b/st.c Sat Jan 22 16:52:14 2011 -0600 @@ -1522,8 +1522,8 @@ xloadcols(); /* window - default size */ - xw.bufh = 24 * xw.ch; - xw.bufw = 80 * xw.cw; + xw.bufh = DEFAULT_ROWS * xw.ch; + xw.bufw = DEFAULT_COLS * xw.cw; xw.h = xw.bufh + 2*BORDER; xw.w = xw.bufw + 2*BORDER; @@ -1872,7 +1872,7 @@ break; } setlocale(LC_CTYPE, ""); - tnew(80, 24); + tnew(DEFAULT_COLS, DEFAULT_ROWS); ttynew(); xinit(); selinit();