113136Sjkh/*
213136Sjkh * small test-driver for new dialog functionality
313136Sjkh *
413136Sjkh * Copyright (c) 1995, Jordan Hubbard
513136Sjkh *
613136Sjkh * All rights reserved.
713136Sjkh *
813136Sjkh * This source code may be used, modified, copied, distributed, and
913136Sjkh * sold, in both source and binary form provided that the above
1013136Sjkh * copyright and these terms are retained, verbatim, as the first
1113136Sjkh * lines of this file.  Under no circumstances is the author
1213136Sjkh * responsible for the proper functioning of the software nor does
1313136Sjkh * the author assume any responsibility for damages incurred with
1413136Sjkh * its use.
1513136Sjkh */
1613136Sjkh
17114603Sobrien#include <sys/cdefs.h>
18114603Sobrien__FBSDID("$FreeBSD$");
19114603Sobrien
2013136Sjkh#include <stdio.h>
2113136Sjkh#include <stdlib.h>
2213136Sjkh#include <string.h>
2313136Sjkh#include <unistd.h>
2413136Sjkh#include <sys/wait.h>
2513136Sjkh#include <dialog.h>
2613136Sjkh
2713136Sjkh/* Kick it off, James! */
2813136Sjkhint
2955752Sphantommain(int argc, char **argv)
3013136Sjkh{
3113136Sjkh  int retval;
3213136Sjkh
3313136Sjkh  init_dialog();
3413136Sjkh
3513136Sjkh  retval = dialog_msgbox("This is dialog_msgbox() in action with pause on", "Hi there.  Please press return now.",
3613136Sjkh			 -1, -1, 1);
3713136Sjkh  dialog_clear();
3813136Sjkh  fprintf(stderr, "returned value for dialog_msgbox was %d\n", retval);
3913136Sjkh
4013136Sjkh  end_dialog();
4113136Sjkh  return 0;
4213136Sjkh}
43