Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <newt.h>
- int main(void) {
- int selection;
- char *list_entries[] = { "One", "Two", "Three", "Four", "Five", "Six", "Seven", NULL };
- newtInit();
- newtCls();
- newtPushHelpLine(NULL);
- newtWinMenu("List", "test list", 40, 0, 0, 5, list_entries, &selection, "Ok", "Cancel", NULL);
- newtFinished();
- puts(list_entries[selection]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement