mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 05:21:08 +01:00
0d18307afc
input fields. It reads a template file passed to init_forms(char *) and creates a curses based form editor. See the examples directory for a basic demo.
19 lines
245 B
C
19 lines
245 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <ncurses.h>
|
|
#include <dialog.h>
|
|
#include <forms.h>
|
|
|
|
extern struct form *form;
|
|
|
|
void
|
|
main()
|
|
{
|
|
printf("Testing forms code\n");
|
|
|
|
if (init_forms("example.frm") == -1)
|
|
exit(1);
|
|
|
|
edit_form(form);
|
|
}
|