NcLooper/ui/t.c

49 lines
867 B
C
Raw Normal View History

2019-10-27 21:08:27 +11:00
/*
* NcLooper test des fonctions ncurses
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
2019-10-30 15:31:38 +11:00
#include "ncfuncs.h"
2019-10-27 21:08:27 +11:00
/* --------------------------------------------------------------------- */
int verbosity;
/* --------------------------------------------------------------------- */
void help(int k)
{
puts("plop...");
exit(0);
}
/* --------------------------------------------------------------------- */
int main(int argc, char *argv[])
{
int foo;
int opt;
while ((opt = getopt(argc, argv, "hv")) != -1) {
switch(opt) {
case 'h': help(0); break;
case 'v': verbosity++; break;
}
}
#if DEBUG_LEVEL
fprintf(stderr, "argc = %d, optind = %d\n", argc, optind);
#endif
2019-10-30 15:31:38 +11:00
foo = init_ecran("* NcLooper *");
sleep(2);
fin_ecran();
2019-10-27 21:08:27 +11:00
return 0;
}
/* --------------------------------------------------------------------- */