aewl

diff menu.c @ 6:e0cefb3981c8

implemented pipe_spawn
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 11:10:05 +0200
parents e5018cae273f
children 49e2fc9fb94f
line diff
     1.1 --- a/menu.c	Mon Jul 10 22:16:48 2006 +0200
     1.2 +++ b/menu.c	Tue Jul 11 11:10:05 2006 +0200
     1.3 @@ -356,6 +356,15 @@
     1.4  	char *maxname;
     1.5  	XEvent ev;
     1.6  
     1.7 +	char buf[256];
     1.8 +
     1.9 +	fputs(STATUSCMD, stdout);
    1.10 +	fputs("\n", stdout);
    1.11 +	pipe_spawn(buf, sizeof(buf), NULL, STATUSCMD);
    1.12 +	fputs(buf, stderr);
    1.13 +
    1.14 +	return 0;
    1.15 +
    1.16  	/* command line args */
    1.17  	for(i = 1; i < argc; i++) {
    1.18  		if (argv[i][0] == '-')