|
Lines 384-389
Link Here
|
| 384 |
end_dialog(); |
384 |
end_dialog(); |
| 385 |
return retval; |
385 |
return retval; |
| 386 |
} |
386 |
} |
|
|
387 |
else if (!strcmp(argv[offset+1], "--file")) { |
| 388 |
unsigned char *tresult; |
| 389 |
if (argc-offset != 4) { |
| 390 |
Usage(argv[0]); |
| 391 |
exit(-1); |
| 392 |
} |
| 393 |
init_dialog(); |
| 394 |
tresult = dialog_fselect(argv[offset+2], argv[offset+3]); |
| 395 |
dialog_update(); |
| 396 |
if (tresult) { |
| 397 |
fputs(tresult, stderr); |
| 398 |
retval = 0; |
| 399 |
} else { |
| 400 |
retval = 1; |
| 401 |
} |
| 402 |
if (clear_screen) /* clear screen before exit */ |
| 403 |
dialog_clear(); |
| 404 |
end_dialog(); |
| 405 |
return retval; |
| 406 |
} |
| 387 |
|
407 |
|
| 388 |
Usage(argv[0]); |
408 |
Usage(argv[0]); |
| 389 |
exit(-1); |
409 |
exit(-1); |
|
Lines 421-426
Link Here
|
| 421 |
\n --checklist <text> <height> <width> <list height> <tag1> <item1> <status1>...\ |
441 |
\n --checklist <text> <height> <width> <list height> <tag1> <item1> <status1>...\ |
| 422 |
\n --radiolist <text> <height> <width> <list height> <tag1> <item1> <status1>...\ |
442 |
\n --radiolist <text> <height> <width> <list height> <tag1> <item1> <status1>...\ |
| 423 |
\n --ftree <file> <FS> <text> <height> <width> <menu height>\ |
443 |
\n --ftree <file> <FS> <text> <height> <width> <menu height>\ |
| 424 |
\n --tree <FS> <text> <height> <width> <menu height> <item1>...\n", VERSION, name, name, name); |
444 |
\n --tree <FS> <text> <height> <width> <menu height> <item1>...\ |
|
|
445 |
\n --file <directory> <file mask>\n", VERSION, name, name, name); |
| 425 |
} |
446 |
} |
| 426 |
/* End of Usage() */ |
447 |
/* End of Usage() */ |