*/
/* Make a little guy with a big nose and a hat wanter around the screen,
- spewing out messages. Derived from xnlock by Dan Heller <argv@sun.com>.
+ spewing out messages. Derived from xnlock by
+ Dan Heller <argv@danheller.com>.
*/
#include "screenhack.h"
sprintf (buf, "\"%s\" produced no output!", orig_program);
else if (!first_time &&
(strstr (buf, ": not found") ||
- strstr (buf, ": Not found")))
+ strstr (buf, ": Not found") ||
+ strstr (buf, ": command not found") ||
+ strstr (buf, ": Command not found")))
switch (random () % 20)
{
case 1: strcat (buf, "( Get with the program, bub. )\n");
#else
"*mode: string",
#endif
- "*program: " ZIPPY_PROGRAM,
+ "*program: " FORTUNE_PROGRAM,
"noseguy.font: -*-new century schoolbook-*-r-*-*-*-180-*-*-*-*-*-*",
0
};
while (1)
{
next_fn();
- XSync (dpy, True);
+ XSync (dpy, False);
+ screenhack_handle_events (dpy);
usleep (interval * 1000);
}
}