Print message on system without X11

This commit is contained in:
Andy Cedilnik 2002-10-29 15:58:35 -05:00
parent a43958f4f0
commit ea2001e6e5
1 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,8 @@ char **argv;
mywindow=XCreateSimpleWindow(mydisplay,
DefaultRootWindow(mydisplay),
myhint.x, myhint.y, myhint.width, myhint.height, 5,
myhint.x, myhint.y, myhint.width,
myhint.height, 5,
myforeground, mybackground );
XDestroyWindow(mydisplay, mywindow);
XCloseDisplay(mydisplay);
@ -40,8 +41,11 @@ char **argv;
#else
#include "stdio.h"
int main()
{
printf("No X on this computer\n");
return 0;
}