~kris/suckless

st

f35ea526cd88b4497dc12ff32de2d1de7c53e246 — siduck76 5 years ago f933ff1
patch : bold is not bright
1 files changed, 23 insertions(+), 0 deletions(-)

M x.c.orig
M x.c.orig => x.c.orig +23 -0
@@ 2155,6 2155,28 @@ usage(void)
	    " [stty_args ...]\n", argv0, argv0);
}

void
reload(int sig)
{
	config_init();

	/* colors, fonts */
	xloadcols();
	xunloadfonts();
	usedfont = (opt_font == NULL)? font : opt_font;
	xloadfonts(usedfont, 0);

	/* pretend the window just got resized */
	cresize(win.w, win.h);

	redraw();

	/* triggers re-render if we're visible. */
	ttywrite("\033[O", 3, 1);

	signal(SIGUSR1, reload);
}

int
main(int argc, char *argv[])
{


@@ 2225,6 2247,7 @@ run:
	config_init();
	cols = MAX(cols, 1);
	rows = MAX(rows, 1);
	signal(SIGUSR1, reload);
	tnew(cols, rows);
	xinit(cols, rows);
	xsetenv();